#391762#391762

#391762 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.124 H 299.5°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#391762
RGBrgb(57, 23, 98)
HSLhsl(267, 62%, 24%)
HSVhsv(267, 77%, 38%)
CMYKcmyk(41.8%, 76.5%, 0%, 61.6%)
CIE-LABlab(17.29, 33.23, -37.92)
CIE-LCHlch(17.29, 50.42, 311.23°)
OKLaboklab(30.18% 0.0612 -0.1082)
OKLCHoklch(30.18% 0.124 299.5)
XYZxyz(4.1978, 2.3644, 11.7881)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391762 #406217
analogous
#171A62 #391762 #5E1762
triadic
#391762 #623917 #176239
tetradic
#391762 #62171A #406217 #17625E
square
#391762 #62171A #406217 #17625E
split-complementary
#391762 #625E17 #1A6217
monochromatic
#0E0619 #1C0B30 #391762 #562394 #732EC5

Accessibility & contrast

On white

14.26
#391762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#391762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391762
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391762#FFFFFF#000000##FFFFFF
##3917621.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#2F2A3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #391762;
/* rgb */ color: rgb(57, 23, 98);
/* oklch */ color: oklch(30.2% 0.124 299.5);
Tailwind
colors: {
  custom: {
    50: '#74578f',
    500: '#391762',
    950: '#000000',
  },
}
SCSS
$custom: #391762;
$custom-light: #74578f;
$custom-dark: #000000;
JSON
{
  "hex": "#391762",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 267.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30183,
    "c": 0.12437,
    "h": 299.5
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#391762
secondary
#6F993C
accent
#E5439B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #391762

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

Preview Lab → · Contrast checker → · Palette generator →

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