#392871#392871

#392871 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.1% C 0.120 H 289.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#392871
RGBrgb(57, 40, 113)
HSLhsl(254, 48%, 30%)
HSVhsv(254, 65%, 44%)
CMYKcmyk(49.6%, 64.6%, 0%, 55.7%)
CIE-LABlab(22.23, 27.74, -39.68)
CIE-LCHlch(22.23, 48.42, 304.96°)
OKLaboklab(34.13% 0.0394 -0.1135)
OKLCHoklch(34.13% 0.12 289.2)
XYZxyz(5.4259, 3.5795, 16.0246)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392871 #607128
analogous
#283B71 #392871 #5E2871
triadic
#392871 #713928 #287139
tetradic
#392871 #71283B #607128 #28715E
square
#392871 #71283B #607128 #28715E
split-complementary
#392871 #715E28 #3B7128
monochromatic
#0B0817 #221844 #392871 #50389E #6C52C2

Accessibility & contrast

On white

12.24
#392871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#392871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392871
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392871#FFFFFF#000000##FFFFFF
##3928711.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#273948
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #392871;
/* rgb */ color: rgb(57, 40, 113);
/* oklch */ color: oklch(34.1% 0.120 289.2);
Tailwind
colors: {
  custom: {
    50: '#75639a',
    500: '#392871',
    950: '#000000',
  },
}
SCSS
$custom: #392871;
$custom-light: #75639a;
$custom-dark: #000000;
JSON
{
  "hex": "#392871",
  "rgb": {
    "r": 57,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 253.973,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.34131,
    "c": 0.12013,
    "h": 289.2
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#392871
secondary
#90A352
accent
#D750B8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #392871

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

Preview Lab → · Contrast checker → · Palette generator →

#392871 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva