#392174#392174

#392174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.134 H 290.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#392174
RGBrgb(57, 33, 116)
HSLhsl(257, 56%, 29%)
HSVhsv(257, 72%, 45%)
CMYKcmyk(50.9%, 71.6%, 0%, 54.5%)
CIE-LABlab(20.90, 32.97, -43.78)
CIE-LCHlch(20.90, 54.80, 306.98°)
OKLaboklab(33.25% 0.0469 -0.1255)
OKLCHoklch(33.25% 0.134 290.5)
XYZxyz(5.3827, 3.2183, 16.8572)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392174 #5C7421
analogous
#213374 #392174 #632174
triadic
#392174 #743921 #217439
tetradic
#392174 #742133 #5C7421 #217463
square
#392174 #742133 #5C7421 #217463
split-complementary
#392174 #746321 #337421
monochromatic
#0C0718 #221344 #392174 #502FA4 #6C45CA

Accessibility & contrast

On white

12.78
#392174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#392174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392174
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392174#FFFFFF#000000##FFFFFF
##3921741.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#263647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #392174;
/* rgb */ color: rgb(57, 33, 116);
/* oklch */ color: oklch(33.2% 0.134 290.5);
Tailwind
colors: {
  custom: {
    50: '#765e9d',
    500: '#392174',
    950: '#000000',
  },
}
SCSS
$custom: #392174;
$custom-light: #765e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#392174",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 257.349,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33248,
    "c": 0.13399,
    "h": 290.5
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#392174
secondary
#8CA749
accent
#DF49B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #392174

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

Preview Lab → · Contrast checker → · Palette generator →

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