CSS named colour
Lavender
#e6e6fa
A CSS named colour: lavender is valid anywhere a colour is expected.
- RGB
- rgb(230 230 250)
- HSL
- 240°, 67%, 94%
- OKLCh
- 93.1% 0.027 285.9
Lavender in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #e6e6fa | |
|---|---|---|
| RGB | rgb(230 230 250) | |
| RGB legacy | rgb(230, 230, 250) | |
| RGB percent | rgb(90.2% 90.2% 98.04%) | |
| HSL | hsl(240 66.7% 94.1%) | |
| HSL legacy | hsl(240, 66.7%, 94.1%) | |
| HSV / HSB | hsv(240, 8%, 98%) | |
| HWB | hwb(240 90.2% 2%) | |
| Nearest name | lavender | |
| CMYK | cmyk(8%, 8%, 0%, 2%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(93.09% 0.02694 285.865)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(93.09% 0.00736 -0.02592) | |
| CIE LCh | lch(91.742% 10.113 285.929) | |
| CIE Lab | lab(91.742% 2.775 -9.724) | |
| Display P3 | color(display-p3 0.902 0.902 0.9737) | |
| Rec. 2020 | color(rec2020 0.8941 0.8911 0.9692) | |
| srgb-linear | color(srgb-linear 0.7913 0.7913 0.956)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.7818 0.8032 1.0183) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.902, 0.902, 0.98)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.791, 0.791, 0.956)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.902, 0.902, 0.98, 1.0) | |
| GLSL vec4 — linear | vec4(0.791, 0.791, 0.956, 1.0) | |
| GLSL ivec3 | ivec3(230, 230, 250) | |
| HLSL float3 — sRGB | float3(0.902, 0.902, 0.98) | |
| HLSL float3 — linear | float3(0.791, 0.791, 0.956) | |
| HLSL float4 — sRGB | float4(0.902, 0.902, 0.98, 1.0) | |
| HLSL half4 — sRGB | half4(0.902, 0.902, 0.98, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.902, 0.902, 0.98) | |
| WGSL vec4f — sRGB | vec4f(0.902, 0.902, 0.98, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.791, 0.791, 0.956) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.902f, 0.902f, 0.98f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(230, 230, 250, 255) | |
| Unreal FLinearColor | FLinearColor(0.7913f, 0.7913f, 0.956f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(230, 230, 250, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.902, 0.902, 0.98, 1) | |
| Flutter Color | Color(0xFFE6E6FA)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(230, 230, 250) | |
| SwiftUI Color | Color(red: 0.902, green: 0.902, blue: 0.98) | |
| UIKit UIColor | UIColor(red: 0.902, green: 0.902, blue: 0.98, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xE6E6FA | |
|---|---|---|
| 0x hex (ARGB) | 0xFFE6E6FA | |
| Array 0–1 | [0.902, 0.902, 0.98] | |
| Array 0–255 | [230, 230, 250] | |
| Decimal integer | 15132410 |
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 |
|---|---|---|---|---|
| Lavender on white | 1.23:1 | Fail | Lc 11 | Not usable for text |
| Lavender on black | 17.06:1 | AAA | Lc 93 | Body text at any size |
Lavender text on a white background
Lavender text on a black background
White text on Lavender
Black text on Lavender
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#f6f6ff
- 100#ececfb
- 200#dbdbeb
- 300#c4c4d5
- 400#a7a7b9
- 500#89899b
- 600#707081
- 700#595968
- 800#464654
- 900#373643
- 950#1e1e28
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#eaeafb
- Tint 2#eeeefc
- Tint 3#f2f2fd
- Tint 4#f7f7fd
- Tint 5#fbfbfe
- Shade 1#b4b4c4
- Shade 2#858591
- Shade 3#595961
- Shade 4#303035
- Shade 5#0c0c0e
Colours that work with Lavender
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #eaead5
- #f9e3d9
- #d8eee4
- #dde9fb
- #efe3f5
Closest CSS names
lavenderexact matchmistyroseΔEok 0.044gainsboroΔEok 0.045lavenderblushΔEok 0.046whitesmokeΔEok 0.048aliceblueΔEok 0.048