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
Medium Slate Blue in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #7b68ee | |
|---|---|---|
| RGB | rgb(123 104 238) | |
| RGB legacy | rgb(123, 104, 238) | |
| RGB percent | rgb(48.24% 40.78% 93.33%) | |
| HSL | hsl(248.5 79.8% 67.1%) | |
| HSL legacy | hsl(248.5, 79.8%, 67.1%) | |
| HSV / HSB | hsv(248.5, 56.3%, 93.3%) | |
| HWB | hwb(248.5 40.8% 6.7%) | |
| Nearest name | mediumslateblue | |
| CMYK | cmyk(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.
| OKLCh | oklch(60.447% 0.19389 285.498)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(60.447% 0.05181 -0.18684) | |
| CIE LCh | lch(51.283% 74.595 296.976) | |
| CIE Lab | lab(51.283% 33.837 -66.479) | |
| Display P3 | color(display-p3 0.4702 0.4106 0.9023) | |
| Rec. 2020 | color(rec2020 0.4417 0.3698 0.8844) | |
| srgb-linear | color(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 — sRGB | vec3(0.482, 0.408, 0.933)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.198, 0.138, 0.855)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.482, 0.408, 0.933, 1.0) | |
| GLSL vec4 — linear | vec4(0.198, 0.138, 0.855, 1.0) | |
| GLSL ivec3 | ivec3(123, 104, 238) | |
| HLSL float3 — sRGB | float3(0.482, 0.408, 0.933) | |
| HLSL float3 — linear | float3(0.198, 0.138, 0.855) | |
| HLSL float4 — sRGB | float4(0.482, 0.408, 0.933, 1.0) | |
| HLSL half4 — sRGB | half4(0.482, 0.408, 0.933, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.482, 0.408, 0.933) | |
| WGSL vec4f — sRGB | vec4f(0.482, 0.408, 0.933, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.198, 0.138, 0.855) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new 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 Color32 | new Color32(123, 104, 238, 255) | |
| Unreal FLinearColor | FLinearColor(0.1981f, 0.1384f, 0.855f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(123, 104, 238, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.482, 0.408, 0.933, 1) | |
| Flutter Color | Color(0xFF7B68EE)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(123, 104, 238) | |
| SwiftUI Color | Color(red: 0.482, green: 0.408, blue: 0.933) | |
| UIKit UIColor | UIColor(red: 0.482, green: 0.408, blue: 0.933, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x7B68EE | |
|---|---|---|
| 0x hex (ARGB) | 0xFF7B68EE | |
| Array 0–1 | [0.482, 0.408, 0.933] | |
| Array 0–255 | [123, 104, 238] | |
| Decimal integer | 8087790 |
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 Slate Blue on white | 4.15:1 | AA Large | Lc 68 | Headings and large text |
| Medium Slate Blue on black | 5.06:1 | AA | Lc 33 | Non-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 matchmediumpurpleΔEok 0.054slateblueΔEok 0.065royalblueΔEok 0.078bluevioletΔEok 0.109cornflowerblueΔEok 0.112