#382198#382198

#382198 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.179 H 281.8°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#382198
RGBrgb(56, 33, 152)
HSLhsl(252, 64%, 36%)
HSVhsv(252, 78%, 60%)
CMYKcmyk(63.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(24.31, 43.93, -60.79)
CIE-LCHlch(24.31, 75.00, 305.85°)
OKLaboklab(36.7% 0.0367 -0.1753)
OKLCHoklch(36.7% 0.179 281.8)
XYZxyz(7.8405, 4.1949, 30.0962)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382198 #819821
analogous
#214698 #382198 #742198
triadic
#382198 #983821 #219838
tetradic
#382198 #982146 #819821 #219874
square
#382198 #982146 #819821 #219874
split-complementary
#382198 #987421 #469821
monochromatic
#130B33 #251666 #382198 #4B2CCA #7259DB

Accessibility & contrast

On white

11.42
#382198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#382198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382198
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382198#FFFFFF#000000##FFFFFF
##3821981.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #382198;
/* rgb */ color: rgb(56, 33, 152);
/* oklch */ color: oklch(36.7% 0.179 281.8);
Tailwind
colors: {
  custom: {
    50: '#7c60b7',
    500: '#382198',
    950: '#000000',
  },
}
SCSS
$custom: #382198;
$custom-light: #7c60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382198",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 251.597,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36701,
    "c": 0.17916,
    "h": 281.8
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#382198
secondary
#ABBF56
accent
#E740C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382198

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

Preview Lab → · Contrast checker → · Palette generator →

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