#39218A#39218A

#39218A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.162 H 285.0°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#39218A
RGBrgb(57, 33, 138)
HSLhsl(254, 61%, 34%)
HSVhsv(254, 76%, 54%)
CMYKcmyk(58.7%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.97, 39.76, -54.31)
CIE-LCHlch(22.97, 67.31, 306.21°)
OKLaboklab(35.36% 0.042 -0.1564)
OKLCHoklch(35.36% 0.162 285)
XYZxyz(6.8173, 3.7921, 24.4126)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39218A #728A21
analogous
#213D8A #39218A #6D218A
triadic
#39218A #8A3921 #218A39
tetradic
#39218A #8A213D #728A21 #218A6D
square
#39218A #8A213D #728A21 #218A6D
split-complementary
#39218A #8A6D21 #3D8A21
monochromatic
#100927 #251559 #39218A #4D2DBB #6F50D5

Accessibility & contrast

On white

11.94
#39218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#39218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39218A
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39218A#FFFFFF#000000##FFFFFF
##39218A1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#0F3E54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #39218a;
/* rgb */ color: rgb(57, 33, 138);
/* oklch */ color: oklch(35.4% 0.162 285.0);
Tailwind
colors: {
  custom: {
    50: '#795fad',
    500: '#39218a',
    950: '#000000',
  },
}
SCSS
$custom: #39218a;
$custom-light: #795fad;
$custom-dark: #000000;
JSON
{
  "hex": "#39218a",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 253.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35358,
    "c": 0.16194,
    "h": 285
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#39218A
secondary
#A0B94E
accent
#E543C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #39218A

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

Preview Lab → · Contrast checker → · Palette generator →

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