CSS named colour
Medium Purple
#9370db
A CSS named colour: mediumpurple is valid anywhere a colour is expected.
- RGB
- rgb(147 112 219)
- HSL
- 260°, 60%, 65%
- OKLCh
- 62.7% 0.158 296.7
Medium Purple in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #9370db | |
|---|---|---|
| RGB | rgb(147 112 219) | |
| RGB legacy | rgb(147, 112, 219) | |
| RGB percent | rgb(57.65% 43.92% 85.88%) | |
| HSL | hsl(259.6 59.8% 64.9%) | |
| HSL legacy | hsl(259.6, 59.8%, 64.9%) | |
| HSV / HSB | hsv(259.6, 48.9%, 85.9%) | |
| HWB | hwb(259.6 43.9% 14.1%) | |
| Nearest name | mediumpurple | |
| CMYK | cmyk(32.9%, 48.9%, 0%, 14.1%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(62.691% 0.15803 296.672)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(62.691% 0.07094 -0.14121) | |
| CIE LCh | lch(54.45% 59.733 302.059) | |
| CIE Lab | lab(54.45% 31.706 -50.624) | |
| Display P3 | color(display-p3 0.5552 0.4446 0.8332) | |
| Rec. 2020 | color(rec2020 0.5076 0.4053 0.8084) | |
| srgb-linear | color(srgb-linear 0.2918 0.162 0.7084)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.3061 0.2291 0.6983) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.576, 0.439, 0.859)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.292, 0.162, 0.708)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.576, 0.439, 0.859, 1.0) | |
| GLSL vec4 — linear | vec4(0.292, 0.162, 0.708, 1.0) | |
| GLSL ivec3 | ivec3(147, 112, 219) | |
| HLSL float3 — sRGB | float3(0.576, 0.439, 0.859) | |
| HLSL float3 — linear | float3(0.292, 0.162, 0.708) | |
| HLSL float4 — sRGB | float4(0.576, 0.439, 0.859, 1.0) | |
| HLSL half4 — sRGB | half4(0.576, 0.439, 0.859, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.576, 0.439, 0.859) | |
| WGSL vec4f — sRGB | vec4f(0.576, 0.439, 0.859, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.292, 0.162, 0.708) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.576f, 0.439f, 0.859f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(147, 112, 219, 255) | |
| Unreal FLinearColor | FLinearColor(0.2918f, 0.162f, 0.7084f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(147, 112, 219, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.576, 0.439, 0.859, 1) | |
| Flutter Color | Color(0xFF9370DB)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(147, 112, 219) | |
| SwiftUI Color | Color(red: 0.576, green: 0.439, blue: 0.859) | |
| UIKit UIColor | UIColor(red: 0.576, green: 0.439, blue: 0.859, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x9370DB | |
|---|---|---|
| 0x hex (ARGB) | 0xFF9370DB | |
| Array 0–1 | [0.576, 0.439, 0.859] | |
| Array 0–255 | [147, 112, 219] | |
| Decimal integer | 9662683 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Medium Purple on white | 3.76:1 | AA Large | Lc 65 | Headings and large text |
| Medium Purple on black | 5.58:1 | AA | Lc 37 | Non-text elements only |
Medium Purple text on a white background
Medium Purple text on a black background
White text on Medium Purple
Black text on Medium Purple
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#f9f3ff
- 100#f0e7ff
- 200#e1d2ff
- 300#ceb4ff
- 400#b393fd
- 500#9673de
- 600#7c5abf
- 700#6544a1
- 800#513286
- 900#40236f
- 950#260c4a
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#a488e2
- Tint 2#b5a0e9
- Tint 3#c7b8f0
- Tint 4#d9d0f5
- Tint 5#ece7fb
- Shade 1#7256ac
- Shade 2#533e7e
- Shade 3#362754
- Shade 4#1b122d
- Shade 5#04020b
Colours that work with Medium Purple
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #839300
- #cd6a00
- #00a286
- #5c82e7
- #b861ba
Closest CSS names
mediumpurpleexact matchmediumslateblueΔEok 0.054mediumorchidΔEok 0.083slateblueΔEok 0.090cornflowerblueΔEok 0.104royalblueΔEok 0.116