#392272#392272

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

Color values

HEX#392272
RGBrgb(57, 34, 114)
HSLhsl(257, 54%, 29%)
HSVhsv(257, 70%, 45%)
CMYKcmyk(50%, 70.2%, 0%, 55.3%)
CIE-LABlab(20.94, 31.76, -42.42)
CIE-LCHlch(20.94, 53.00, 306.82°)
OKLaboklab(33.22% 0.0462 -0.1215)
OKLCHoklch(33.22% 0.13 290.8)
XYZxyz(5.2958, 3.2286, 16.2605)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392272 #5B7222
analogous
#223372 #392272 #612272
triadic
#392272 #723922 #227239
tetradic
#392272 #722233 #5B7222 #227261
square
#392272 #722233 #5B7222 #227261
split-complementary
#392272 #726122 #337222
monochromatic
#0C0718 #211443 #392272 #5130A1 #6C46C8

Accessibility & contrast

On white

12.76
#392272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#392272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392272
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392272#FFFFFF#000000##FFFFFF
##3922721.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#273647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #392272;
/* rgb */ color: rgb(57, 34, 114);
/* oklch */ color: oklch(33.2% 0.130 290.8);
Tailwind
colors: {
  custom: {
    50: '#755f9b',
    500: '#392272',
    950: '#000000',
  },
}
SCSS
$custom: #392272;
$custom-light: #755f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#392272",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 257.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33222,
    "c": 0.13001,
    "h": 290.8
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#392272
secondary
#8BA54B
accent
#DD4AB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #392272

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

Preview Lab → · Contrast checker → · Palette generator →

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