#381966#381966

#381966 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.127 H 296.6°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#381966
RGBrgb(56, 25, 102)
HSLhsl(264, 61%, 25%)
HSVhsv(264, 75%, 40%)
CMYKcmyk(45.1%, 75.5%, 0%, 60%)
CIE-LABlab(17.90, 33.10, -39.58)
CIE-LCHlch(17.90, 51.60, 309.91°)
OKLaboklab(30.69% 0.0566 -0.1132)
OKLCHoklch(30.69% 0.127 296.6)
XYZxyz(4.3762, 2.4952, 12.8189)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381966 #476619
analogous
#192066 #381966 #5F1966
triadic
#381966 #663819 #196638
tetradic
#381966 #661920 #476619 #19665F
square
#381966 #661920 #476619 #19665F
split-complementary
#381966 #665F19 #206619
monochromatic
#0D0619 #1D0D35 #381966 #532597 #6E31C8

Accessibility & contrast

On white

14.01
#381966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381966
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381966#FFFFFF#000000##FFFFFF
##3819661.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#2C2C3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381966;
/* rgb */ color: rgb(56, 25, 102);
/* oklch */ color: oklch(30.7% 0.127 296.6);
Tailwind
colors: {
  custom: {
    50: '#745992',
    500: '#381966',
    950: '#000000',
  },
}
SCSS
$custom: #381966;
$custom-light: #745992;
$custom-dark: #000000;
JSON
{
  "hex": "#381966",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 264.156,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30692,
    "c": 0.12655,
    "h": 296.6
  },
  "luminance": 0.02495
}

Semantic roles & 50–950 ramp

primary
#381966
secondary
#769C3F
accent
#E444A3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #381966

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

Preview Lab → · Contrast checker → · Palette generator →

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