#39227E#39227E

#39227E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.146 H 287.6°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#39227E
RGBrgb(57, 34, 126)
HSLhsl(255, 58%, 31%)
HSVhsv(255, 73%, 49%)
CMYKcmyk(54.8%, 73%, 0%, 50.6%)
CIE-LABlab(22.02, 35.49, -48.33)
CIE-LCHlch(22.02, 59.96, 306.29°)
OKLaboklab(34.33% 0.044 -0.1389)
OKLCHoklch(34.33% 0.146 287.6)
XYZxyz(6.0242, 3.5200, 20.0966)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39227E #677E22
analogous
#22397E #39227E #67227E
triadic
#39227E #7E3922 #227E39
tetradic
#39227E #7E2239 #677E22 #227E67
square
#39227E #7E2239 #677E22 #227E67
split-complementary
#39227E #7E6722 #397E22
monochromatic
#0D081E #23154E #39227E #4F2FAE #6C4CCF

Accessibility & contrast

On white

12.32
#39227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#39227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39227E
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39227E#FFFFFF#000000##FFFFFF
##39227E1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#1E3A4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #39227e;
/* rgb */ color: rgb(57, 34, 126);
/* oklch */ color: oklch(34.3% 0.146 287.6);
Tailwind
colors: {
  custom: {
    50: '#775fa4',
    500: '#39227e',
    950: '#000000',
  },
}
SCSS
$custom: #39227e;
$custom-light: #775fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#39227e",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 255,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34328,
    "c": 0.14566,
    "h": 287.6
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#39227E
secondary
#97B14B
accent
#E147BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39227E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#39227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva