CSS named colour

Medium Slate Blue

#7b68ee

A CSS named colour: mediumslateblue is valid anywhere a colour is expected.

RGB
rgb(123 104 238)
HSL
249°, 80%, 67%
OKLCh
60.4% 0.194 285.5

Open in the picker

Medium Slate Blue in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#7b68ee
RGBrgb(123 104 238)
RGB legacyrgb(123, 104, 238)
RGB percentrgb(48.24% 40.78% 93.33%)
HSLhsl(248.5 79.8% 67.1%)
HSL legacyhsl(248.5, 79.8%, 67.1%)
HSV / HSBhsv(248.5, 56.3%, 93.3%)
HWBhwb(248.5 40.8% 6.7%)
Nearest namemediumslateblue
CMYKcmyk(48.3%, 56.3%, 0%, 6.7%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(60.447% 0.19389 285.498)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(60.447% 0.05181 -0.18684)
CIE LChlch(51.283% 74.595 296.976)
CIE Lablab(51.283% 33.837 -66.479)
Display P3color(display-p3 0.4702 0.4106 0.9023)
Rec. 2020color(rec2020 0.4417 0.3698 0.8844)
srgb-linearcolor(srgb-linear 0.1981 0.1384 0.855)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.2855 0.2028 0.833)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.482, 0.408, 0.933)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.198, 0.138, 0.855)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.482, 0.408, 0.933, 1.0)
GLSL vec4 — linearvec4(0.198, 0.138, 0.855, 1.0)
GLSL ivec3ivec3(123, 104, 238)
HLSL float3 — sRGBfloat3(0.482, 0.408, 0.933)
HLSL float3 — linearfloat3(0.198, 0.138, 0.855)
HLSL float4 — sRGBfloat4(0.482, 0.408, 0.933, 1.0)
HLSL half4 — sRGBhalf4(0.482, 0.408, 0.933, 1.0)
WGSL vec3f — sRGBvec3f(0.482, 0.408, 0.933)
WGSL vec4f — sRGBvec4f(0.482, 0.408, 0.933, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.198, 0.138, 0.855)

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

Unity Colornew Color(0.482f, 0.408f, 0.933f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(123, 104, 238, 255)
Unreal FLinearColorFLinearColor(0.1981f, 0.1384f, 0.855f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(123, 104, 238, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.482, 0.408, 0.933, 1)
Flutter ColorColor(0xFF7B68EE)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(123, 104, 238)
SwiftUI ColorColor(red: 0.482, green: 0.408, blue: 0.933)
UIKit UIColorUIColor(red: 0.482, green: 0.408, blue: 0.933, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x7B68EE
0x hex (ARGB)0xFF7B68EE
Array 0–1[0.482, 0.408, 0.933]
Array 0–255[123, 104, 238]
Decimal integer8087790

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 Slate Blue on white4.15:1AA LargeLc 68Headings and large text
Medium Slate Blue on black5.06:1AALc 33Non-text elements only

Medium Slate Blue text on a white background

Medium Slate Blue text on a black background

White text on Medium Slate Blue

Black text on Medium Slate Blue

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#f5f5ff
  • 100#eaeaff
  • 200#d7d6ff
  • 300#bebbff
  • 400#a197ff
  • 500#8472f9
  • 600#6c58d8
  • 700#5741b8
  • 800#452f9b
  • 900#361f82
  • 950#1f0558

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#8e83f3
  • Tint 2#a29df7
  • Tint 3#b8b6fb
  • Tint 4#cfcefd
  • Tint 5#e7e7ff
  • Shade 1#5f50bb
  • Shade 2#45398a
  • Shade 3#2c245c
  • Shade 4#151032
  • Shade 5#03020d

Colours that work with Medium Slate Blue

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #8f8500
  • #d94d00
  • #009c6b
  • #147ff1
  • #ac54ce

Closest CSS names

  • mediumslateblueexact match
  • mediumpurpleΔEok 0.054
  • slateblueΔEok 0.065
  • royalblueΔEok 0.078
  • bluevioletΔEok 0.109
  • cornflowerblueΔEok 0.112