#392198#392198

#392198 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.179 H 282.3°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#392198
RGBrgb(57, 33, 152)
HSLhsl(252, 64%, 36%)
HSVhsv(252, 78%, 60%)
CMYKcmyk(62.5%, 78.3%, 0%, 40.4%)
CIE-LABlab(24.40, 44.05, -60.63)
CIE-LCHlch(24.40, 74.94, 306.00°)
OKLaboklab(36.79% 0.0383 -0.1749)
OKLCHoklch(36.79% 0.179 282.3)
XYZxyz(7.8969, 4.2240, 30.0989)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392198 #809821
analogous
#214598 #392198 #752198
triadic
#392198 #983921 #219839
tetradic
#392198 #982145 #809821 #219875
square
#392198 #982145 #809821 #219875
split-complementary
#392198 #987521 #459821
monochromatic
#130B33 #261666 #392198 #4C2CCA #7359DB

Accessibility & contrast

On white

11.38
#392198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#392198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392198
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392198#FFFFFF#000000##FFFFFF
##3921981.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #392198;
/* rgb */ color: rgb(57, 33, 152);
/* oklch */ color: oklch(36.8% 0.179 282.3);
Tailwind
colors: {
  custom: {
    50: '#7c60b7',
    500: '#392198',
    950: '#000000',
  },
}
SCSS
$custom: #392198;
$custom-light: #7c60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#392198",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 252.101,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36789,
    "c": 0.179,
    "h": 282.3
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#392198
secondary
#AABF56
accent
#E740C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #392198

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

Preview Lab → · Contrast checker → · Palette generator →

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