#381660#381660

#381660 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.123 H 299.8°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#381660
RGBrgb(56, 22, 96)
HSLhsl(268, 63%, 23%)
HSVhsv(268, 77%, 38%)
CMYKcmyk(41.7%, 77.1%, 0%, 62.4%)
CIE-LABlab(16.79, 32.99, -37.42)
CIE-LCHlch(16.79, 49.88, 311.40°)
OKLaboklab(29.74% 0.0612 -0.1068)
OKLCHoklch(29.74% 0.123 299.8)
XYZxyz(4.0286, 2.2591, 11.2879)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381660 #3E6016
analogous
#161960 #381660 #5D1660
triadic
#381660 #603816 #166038
tetradic
#381660 #601619 #3E6016 #16605D
square
#381660 #601619 #3E6016 #16605D
split-complementary
#381660 #605D16 #196016
monochromatic
#0F0619 #1B0B2E #381660 #552192 #722DC4

Accessibility & contrast

On white

14.46
#381660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381660
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381660#FFFFFF#000000##FFFFFF
##3816601.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#2F2839
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381660;
/* rgb */ color: rgb(56, 22, 96);
/* oklch */ color: oklch(29.7% 0.123 299.8);
Tailwind
colors: {
  custom: {
    50: '#73578e',
    500: '#381660',
    950: '#000000',
  },
}
SCSS
$custom: #381660;
$custom-light: #73578e;
$custom-dark: #000000;
JSON
{
  "hex": "#381660",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 267.568,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29741,
    "c": 0.12308,
    "h": 299.8
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#381660
secondary
#6D973B
accent
#E6429B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381660

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

Preview Lab → · Contrast checker → · Palette generator →

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