#39227C#39227C

#39227C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.143 H 288.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#39227C
RGBrgb(57, 34, 124)
HSLhsl(255, 57%, 31%)
HSVhsv(255, 73%, 49%)
CMYKcmyk(54%, 72.6%, 0%, 51.4%)
CIE-LABlab(21.83, 34.87, -47.36)
CIE-LCHlch(21.83, 58.81, 306.36°)
OKLaboklab(34.14% 0.0444 -0.136)
OKLCHoklch(34.14% 0.143 288.1)
XYZxyz(5.8964, 3.4689, 19.4237)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39227C #657C22
analogous
#22387C #39227C #66227C
triadic
#39227C #7C3922 #227C39
tetradic
#39227C #7C2238 #657C22 #227C66
square
#39227C #7C2238 #657C22 #227C66
split-complementary
#39227C #7C6622 #387C22
monochromatic
#0D081C #23154C #39227C #4F2FAC #6C4BCE

Accessibility & contrast

On white

12.40
#39227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#39227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39227C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39227C#FFFFFF#000000##FFFFFF
##39227C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#20394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #39227c;
/* rgb */ color: rgb(57, 34, 124);
/* oklch */ color: oklch(34.1% 0.143 288.1);
Tailwind
colors: {
  custom: {
    50: '#775fa3',
    500: '#39227c',
    950: '#000000',
  },
}
SCSS
$custom: #39227c;
$custom-light: #775fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#39227c",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 255.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34139,
    "c": 0.1431,
    "h": 288.1
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#39227C
secondary
#95AF4B
accent
#E048B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39227C

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

Preview Lab → · Contrast checker → · Palette generator →

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