#382298#382298

#382298 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.178 H 281.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#382298
RGBrgb(56, 34, 152)
HSLhsl(251, 63%, 36%)
HSVhsv(251, 78%, 60%)
CMYKcmyk(63.2%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.49, 43.41, -60.49)
CIE-LCHlch(24.49, 74.46, 305.66°)
OKLaboklab(36.83% 0.0361 -0.1745)
OKLCHoklch(36.83% 0.178 281.7)
XYZxyz(7.8686, 4.2512, 30.1056)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382298 #829822
analogous
#224798 #382298 #732298
triadic
#382298 #983822 #229838
tetradic
#382298 #982247 #829822 #229873
square
#382298 #982247 #829822 #229873
split-complementary
#382298 #987322 #479822
monochromatic
#130C34 #261766 #382298 #4A2DCA #725ADA

Accessibility & contrast

On white

11.35
#382298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#382298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382298
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382298#FFFFFF#000000##FFFFFF
##3822981.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382298;
/* rgb */ color: rgb(56, 34, 152);
/* oklch */ color: oklch(36.8% 0.178 281.7);
Tailwind
colors: {
  custom: {
    50: '#7c60b7',
    500: '#382298',
    950: '#000000',
  },
}
SCSS
$custom: #382298;
$custom-light: #7c60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382298",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 251.186,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.17819,
    "h": 281.7
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#382298
secondary
#ABBE57
accent
#E641C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #382298

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

Preview Lab → · Contrast checker → · Palette generator →

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