#382398#382398

#382398 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.177 H 281.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#382398
RGBrgb(56, 35, 152)
HSLhsl(251, 63%, 37%)
HSVhsv(251, 77%, 60%)
CMYKcmyk(63.2%, 77%, 0%, 40.4%)
CIE-LABlab(24.67, 42.89, -60.19)
CIE-LCHlch(24.67, 73.91, 305.47°)
OKLaboklab(36.96% 0.0354 -0.1736)
OKLCHoklch(36.96% 0.177 281.5)
XYZxyz(7.8976, 4.3092, 30.1153)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382398 #839823
analogous
#234998 #382398 #732398
triadic
#382398 #983823 #239838
tetradic
#382398 #982349 #839823 #239873
square
#382398 #982349 #839823 #239873
split-complementary
#382398 #987323 #499823
monochromatic
#130C35 #261866 #382398 #4A2ECA #725CD9

Accessibility & contrast

On white

11.28
#382398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#382398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382398
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382398#FFFFFF#000000##FFFFFF
##3823981.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #382398;
/* rgb */ color: rgb(56, 35, 152);
/* oklch */ color: oklch(37.0% 0.177 281.5);
Tailwind
colors: {
  custom: {
    50: '#7b61b7',
    500: '#382398',
    950: '#000000',
  },
}
SCSS
$custom: #382398;
$custom-light: #7b61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382398",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 250.769,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36956,
    "c": 0.17721,
    "h": 281.5
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#382398
secondary
#ACBE59
accent
#E642C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382398

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

Preview Lab → · Contrast checker → · Palette generator →

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