#391252#391252

#391252 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.112 H 308.7°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#391252
RGBrgb(57, 18, 82)
HSLhsl(277, 64%, 20%)
HSVhsv(277, 78%, 32%)
CMYKcmyk(30.5%, 78%, 0%, 67.8%)
CIE-LABlab(15.02, 31.48, -30.88)
CIE-LCHlch(15.02, 44.09, 315.55°)
OKLaboklab(28.14% 0.0701 -0.0875)
OKLCHoklch(28.14% 0.112 308.7)
XYZxyz(3.4263, 1.9117, 8.1695)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391252 #2B5212
analogous
#191252 #391252 #52124B
triadic
#391252 #523912 #125239
tetradic
#391252 #521912 #2B5212 #124B52
square
#391252 #521912 #2B5212 #124B52
split-complementary
#391252 #4B5212 #125219
monochromatic
#110619 #160720 #391252 #5C1D84 #7F28B6

Accessibility & contrast

On white

15.19
#391252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#391252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391252
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391252#FFFFFF#000000##FFFFFF
##3912521.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#032651
Tritanopia (blue-blind)
#352130
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391252;
/* rgb */ color: rgb(57, 18, 82);
/* oklch */ color: oklch(28.1% 0.112 308.7);
Tailwind
colors: {
  custom: {
    50: '#725483',
    500: '#391252',
    950: '#000000',
  },
}
SCSS
$custom: #391252;
$custom-light: #725483;
$custom-dark: #000000;
JSON
{
  "hex": "#391252",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 276.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28137,
    "c": 0.1121,
    "h": 308.7
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#391252
secondary
#578B35
accent
#E74182
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391252

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

Preview Lab → · Contrast checker → · Palette generator →

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