#39227A#39227A

#39227A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.141 H 288.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#39227A
RGBrgb(57, 34, 122)
HSLhsl(256, 56%, 31%)
HSVhsv(256, 72%, 48%)
CMYKcmyk(53.3%, 72.1%, 0%, 52.2%)
CIE-LABlab(21.65, 34.24, -46.39)
CIE-LCHlch(21.65, 57.66, 306.44°)
OKLaboklab(33.95% 0.0448 -0.1332)
OKLCHoklch(33.95% 0.141 288.6)
XYZxyz(5.7712, 3.4188, 18.7644)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39227A #637A22
analogous
#22377A #39227A #65227A
triadic
#39227A #7A3922 #227A39
tetradic
#39227A #7A2237 #637A22 #227A65
square
#39227A #7A2237 #637A22 #227A65
split-complementary
#39227A #7A6522 #377A22
monochromatic
#0C071A #23154A #39227A #4F2FAA #6C4ACD

Accessibility & contrast

On white

12.47
#39227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#39227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39227A
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39227A#FFFFFF#000000##FFFFFF
##39227A1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#21394B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39227a;
/* rgb */ color: rgb(57, 34, 122);
/* oklch */ color: oklch(34.0% 0.141 288.6);
Tailwind
colors: {
  custom: {
    50: '#765fa1',
    500: '#39227a',
    950: '#000000',
  },
}
SCSS
$custom: #39227a;
$custom-light: #765fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#39227a",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 255.682,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33952,
    "c": 0.1405,
    "h": 288.6
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#39227A
secondary
#93AD4B
accent
#E048B8
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39227A

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

Preview Lab → · Contrast checker → · Palette generator →

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