#381893#381893

#381893 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.181 H 283.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#381893
RGBrgb(56, 24, 147)
HSLhsl(256, 72%, 34%)
HSVhsv(256, 84%, 58%)
CMYKcmyk(61.9%, 83.7%, 0%, 42.4%)
CIE-LABlab(22.30, 46.68, -61.01)
CIE-LCHlch(22.30, 76.82, 307.42°)
OKLaboklab(35.15% 0.0436 -0.1759)
OKLCHoklch(35.15% 0.181 283.9)
XYZxyz(7.2224, 3.6001, 27.9124)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381893 #739318
analogous
#183593 #381893 #751893
triadic
#381893 #933818 #189338
tetradic
#381893 #931835 #739318 #189375
square
#381893 #931835 #739318 #189375
split-complementary
#381893 #937518 #359318
monochromatic
#10072A #240F5E #381893 #4C21C8 #6D45E1

Accessibility & contrast

On white

12.21
#381893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381893
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381893#FFFFFF#000000##FFFFFF
##3818931.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381893;
/* rgb */ color: rgb(56, 24, 147);
/* oklch */ color: oklch(35.1% 0.181 283.9);
Tailwind
colors: {
  custom: {
    50: '#7b5bb4',
    500: '#381893',
    950: '#000000',
  },
}
SCSS
$custom: #381893;
$custom-light: #7b5bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#381893",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 147
  },
  "hsl": {
    "h": 255.61,
    "s": 71.93,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.18122,
    "h": 283.9
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#381893
secondary
#A1C245
accent
#EF39BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381893

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

Preview Lab → · Contrast checker → · Palette generator →

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