#392271#392271

#392271 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.129 H 291.1°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#392271
RGBrgb(57, 34, 113)
HSLhsl(257, 54%, 29%)
HSVhsv(257, 70%, 44%)
CMYKcmyk(49.6%, 69.9%, 0%, 55.7%)
CIE-LABlab(20.85, 31.45, -41.92)
CIE-LCHlch(20.85, 52.41, 306.88°)
OKLaboklab(33.13% 0.0463 -0.1201)
OKLCHoklch(33.13% 0.129 291.1)
XYZxyz(5.2392, 3.2060, 15.9623)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392271 #5A7122
analogous
#223371 #392271 #612271
triadic
#392271 #713922 #227139
tetradic
#392271 #712233 #5A7122 #227161
square
#392271 #712233 #5A7122 #227161
split-complementary
#392271 #716122 #337122
monochromatic
#0C0718 #211442 #392271 #5130A0 #6C46C7

Accessibility & contrast

On white

12.80
#392271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #392271
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392271#FFFFFF#000000##FFFFFF
##3922711.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#273546
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #392271;
/* rgb */ color: rgb(57, 34, 113);
/* oklch */ color: oklch(33.1% 0.129 291.1);
Tailwind
colors: {
  custom: {
    50: '#755f9a',
    500: '#392271',
    950: '#000000',
  },
}
SCSS
$custom: #392271;
$custom-light: #755f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#392271",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 257.468,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.12869,
    "h": 291.1
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#392271
secondary
#8AA44A
accent
#DD4BB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #392271

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

Preview Lab → · Contrast checker → · Palette generator →

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