#381977#381977

#381977 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.147 H 290.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#381977
RGBrgb(56, 25, 119)
HSLhsl(260, 65%, 28%)
HSVhsv(260, 79%, 47%)
CMYKcmyk(52.9%, 79%, 0%, 53.3%)
CIE-LABlab(19.51, 38.07, -47.98)
CIE-LCHlch(19.51, 61.25, 308.43°)
OKLaboklab(32.32% 0.0522 -0.1378)
OKLCHoklch(32.32% 0.147 290.7)
XYZxyz(5.3073, 2.8677, 17.7231)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381977 #587719
analogous
#192977 #381977 #671977
triadic
#381977 #773819 #197738
tetradic
#381977 #771929 #587719 #197767
square
#381977 #771929 #587719 #197767
split-complementary
#381977 #776719 #297719
monochromatic
#0C0519 #200E44 #381977 #5024AA #6A36D5

Accessibility & contrast

On white

13.35
#381977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381977
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381977#FFFFFF#000000##FFFFFF
##3819771.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#223347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381977;
/* rgb */ color: rgb(56, 25, 119);
/* oklch */ color: oklch(32.3% 0.147 290.7);
Tailwind
colors: {
  custom: {
    50: '#765a9f',
    500: '#381977',
    950: '#000000',
  },
}
SCSS
$custom: #381977;
$custom-light: #765a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#381977",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 259.787,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32322,
    "c": 0.14739,
    "h": 290.7
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#381977
secondary
#88AC40
accent
#E840B1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381977

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

Preview Lab → · Contrast checker → · Palette generator →

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