CSS named colour
Medium Orchid
#ba55d3
A CSS named colour: mediumorchid is valid anywhere a colour is expected.
- RGB
- rgb(186 85 211)
- HSL
- 288°, 59%, 58%
- OKLCh
- 62.6% 0.202 319.2
Medium Orchid in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #ba55d3 | |
|---|---|---|
| RGB | rgb(186 85 211) | |
| RGB legacy | rgb(186, 85, 211) | |
| RGB percent | rgb(72.94% 33.33% 82.75%) | |
| HSL | hsl(288.1 58.9% 58%) | |
| HSL legacy | hsl(288.1, 58.9%, 58%) | |
| HSV / HSB | hsv(288.1, 59.7%, 82.7%) | |
| HWB | hwb(288.1 33.3% 17.3%) | |
| Nearest name | mediumorchid | |
| CMYK | cmyk(11.8%, 59.7%, 0%, 17.3%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(62.558% 0.20244 319.226)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(62.558% 0.15331 -0.13221) | |
| CIE LCh | lch(53.369% 72.658 319.226) | |
| CIE Lab | lab(53.369% 55.023 -47.451) | |
| Display P3 | color(display-p3 0.68 0.3561 0.8025) | |
| Rec. 2020 | color(rec2020 0.6002 0.3317 0.7739) | |
| srgb-linear | color(srgb-linear 0.491 0.0908 0.6514)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.3525 0.2164 0.6395) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.729, 0.333, 0.827)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.491, 0.091, 0.651)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.729, 0.333, 0.827, 1.0) | |
| GLSL vec4 — linear | vec4(0.491, 0.091, 0.651, 1.0) | |
| GLSL ivec3 | ivec3(186, 85, 211) | |
| HLSL float3 — sRGB | float3(0.729, 0.333, 0.827) | |
| HLSL float3 — linear | float3(0.491, 0.091, 0.651) | |
| HLSL float4 — sRGB | float4(0.729, 0.333, 0.827, 1.0) | |
| HLSL half4 — sRGB | half4(0.729, 0.333, 0.827, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.729, 0.333, 0.827) | |
| WGSL vec4f — sRGB | vec4f(0.729, 0.333, 0.827, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.491, 0.091, 0.651) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.729f, 0.333f, 0.827f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(186, 85, 211, 255) | |
| Unreal FLinearColor | FLinearColor(0.491f, 0.0908f, 0.6514f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(186, 85, 211, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.729, 0.333, 0.827, 1) | |
| Flutter Color | Color(0xFFBA55D3)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(186, 85, 211) | |
| SwiftUI Color | Color(red: 0.729, green: 0.333, blue: 0.827) | |
| UIKit UIColor | UIColor(red: 0.729, green: 0.333, blue: 0.827, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xBA55D3 | |
|---|---|---|
| 0x hex (ARGB) | 0xFFBA55D3 | |
| Array 0–1 | [0.729, 0.333, 0.827] | |
| Array 0–255 | [186, 85, 211] | |
| Decimal integer | 12211667 |
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 Orchid on white | 3.94:1 | AA Large | Lc 66 | Headings and large text |
| Medium Orchid on black | 5.33:1 | AA | Lc 35 | Non-text elements only |
Medium Orchid text on a white background
Medium Orchid text on a black background
White text on Medium Orchid
Black text on Medium Orchid
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#ffeeff
- 100#ffdfff
- 200#fec4ff
- 300#f69eff
- 400#dd7bf5
- 500#be59d7
- 600#a03fb8
- 700#85289a
- 800#6d1580
- 900#59036a
- 950#380046
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#c774dc
- Tint 2#d391e4
- Tint 3#dfadeb
- Tint 4#eac8f3
- Tint 5#f5e4f9
- Shade 1#9141a5
- Shade 2#6a2e7a
- Shade 3#461c51
- Shade 4#250b2b
- Shade 5#07010a
Colours that work with Medium Orchid
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #35a200
- #b77a00
- #009ea5
- #896af7
- #da459a
Closest CSS names
mediumorchidexact matchmediumpurpleΔEok 0.083orchidΔEok 0.086darkorchidΔEok 0.093mediumslateblueΔEok 0.117bluevioletΔEok 0.125