#382098#382098

#382098 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.180 H 282.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#382098
RGBrgb(56, 32, 152)
HSLhsl(252, 65%, 36%)
HSVhsv(252, 79%, 60%)
CMYKcmyk(63.2%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.13, 44.43, -61.08)
CIE-LCHlch(24.13, 75.53, 306.03°)
OKLaboklab(36.58% 0.0374 -0.1762)
OKLCHoklch(36.58% 0.18 282)
XYZxyz(7.8131, 4.1402, 30.0871)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382098 #809820
analogous
#204498 #382098 #742098
triadic
#382098 #983820 #209838
tetradic
#382098 #982044 #809820 #209874
square
#382098 #982044 #809820 #209874
split-complementary
#382098 #987420 #449820
monochromatic
#130B33 #251565 #382098 #4B2BCB #7157DC

Accessibility & contrast

On white

11.49
#382098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#382098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382098
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382098#FFFFFF#000000##FFFFFF
##3820981.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382098;
/* rgb */ color: rgb(56, 32, 152);
/* oklch */ color: oklch(36.6% 0.180 282.0);
Tailwind
colors: {
  custom: {
    50: '#7c5fb8',
    500: '#382098',
    950: '#000000',
  },
}
SCSS
$custom: #382098;
$custom-light: #7c5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#382098",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 252,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36578,
    "c": 0.18011,
    "h": 282
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#382098
secondary
#AABF54
accent
#E840C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382098

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

Preview Lab → · Contrast checker → · Palette generator →

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