#392870#392870

#392870 is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.0% C 0.119 H 289.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#392870
RGBrgb(57, 40, 112)
HSLhsl(254, 47%, 30%)
HSVhsv(254, 64%, 44%)
CMYKcmyk(49.1%, 64.3%, 0%, 56.1%)
CIE-LABlab(22.15, 27.42, -39.17)
CIE-LCHlch(22.15, 47.81, 304.99°)
OKLaboklab(34.05% 0.0395 -0.112)
OKLCHoklch(34.05% 0.119 289.4)
XYZxyz(5.3699, 3.5571, 15.7297)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392870 #5F7028
analogous
#283B70 #392870 #5D2870
triadic
#392870 #703928 #287039
tetradic
#392870 #70283B #5F7028 #28705D
square
#392870 #70283B #5F7028 #28705D
split-complementary
#392870 #705D28 #3B7028
monochromatic
#0B0817 #221843 #392870 #50389D #6C51C1

Accessibility & contrast

On white

12.27
#392870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#392870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392870
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392870#FFFFFF#000000##FFFFFF
##3928701.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#283948
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #392870;
/* rgb */ color: rgb(57, 40, 112);
/* oklch */ color: oklch(34.0% 0.119 289.4);
Tailwind
colors: {
  custom: {
    50: '#74639a',
    500: '#392870',
    950: '#000000',
  },
}
SCSS
$custom: #392870;
$custom-light: #74639a;
$custom-dark: #000000;
JSON
{
  "hex": "#392870",
  "rgb": {
    "r": 57,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 254.167,
    "s": 47.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34048,
    "c": 0.11873,
    "h": 289.4
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#392870
secondary
#8FA251
accent
#D751B7
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #392870

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

Preview Lab → · Contrast checker → · Palette generator →

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