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

Open in the picker

Medium Orchid in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#ba55d3
RGBrgb(186 85 211)
RGB legacyrgb(186, 85, 211)
RGB percentrgb(72.94% 33.33% 82.75%)
HSLhsl(288.1 58.9% 58%)
HSL legacyhsl(288.1, 58.9%, 58%)
HSV / HSBhsv(288.1, 59.7%, 82.7%)
HWBhwb(288.1 33.3% 17.3%)
Nearest namemediumorchid
CMYKcmyk(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.

OKLChoklch(62.558% 0.20244 319.226)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(62.558% 0.15331 -0.13221)
CIE LChlch(53.369% 72.658 319.226)
CIE Lablab(53.369% 55.023 -47.451)
Display P3color(display-p3 0.68 0.3561 0.8025)
Rec. 2020color(rec2020 0.6002 0.3317 0.7739)
srgb-linearcolor(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 — sRGBvec3(0.729, 0.333, 0.827)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.491, 0.091, 0.651)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.729, 0.333, 0.827, 1.0)
GLSL vec4 — linearvec4(0.491, 0.091, 0.651, 1.0)
GLSL ivec3ivec3(186, 85, 211)
HLSL float3 — sRGBfloat3(0.729, 0.333, 0.827)
HLSL float3 — linearfloat3(0.491, 0.091, 0.651)
HLSL float4 — sRGBfloat4(0.729, 0.333, 0.827, 1.0)
HLSL half4 — sRGBhalf4(0.729, 0.333, 0.827, 1.0)
WGSL vec3f — sRGBvec3f(0.729, 0.333, 0.827)
WGSL vec4f — sRGBvec4f(0.729, 0.333, 0.827, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.491, 0.091, 0.651)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew 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 Color32new Color32(186, 85, 211, 255)
Unreal FLinearColorFLinearColor(0.491f, 0.0908f, 0.6514f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(186, 85, 211, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.729, 0.333, 0.827, 1)
Flutter ColorColor(0xFFBA55D3)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(186, 85, 211)
SwiftUI ColorColor(red: 0.729, green: 0.333, blue: 0.827)
UIKit UIColorUIColor(red: 0.729, green: 0.333, blue: 0.827, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xBA55D3
0x hex (ARGB)0xFFBA55D3
Array 0–1[0.729, 0.333, 0.827]
Array 0–255[186, 85, 211]
Decimal integer12211667

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.

PairingWCAG 2 ratioLevelAPCASuitable for
Medium Orchid on white3.94:1AA LargeLc 66Headings and large text
Medium Orchid on black5.33:1AALc 35Non-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 match
  • mediumpurpleΔEok 0.083
  • orchidΔEok 0.086
  • darkorchidΔEok 0.093
  • mediumslateblueΔEok 0.117
  • bluevioletΔEok 0.125