#382183#382183

#382183 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.153 H 286.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#382183
RGBrgb(56, 33, 131)
HSLhsl(254, 60%, 32%)
HSVhsv(254, 75%, 51%)
CMYKcmyk(57.3%, 74.8%, 0%, 48.6%)
CIE-LABlab(22.18, 37.44, -51.21)
CIE-LCHlch(22.18, 63.44, 306.17°)
OKLaboklab(34.57% 0.0422 -0.1474)
OKLCHoklch(34.57% 0.153 286)
XYZxyz(6.2702, 3.5668, 21.8264)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382183 #6C8321
analogous
#213B83 #382183 #692183
triadic
#382183 #833821 #218338
tetradic
#382183 #83213B #6C8321 #218369
square
#382183 #83213B #6C8321 #218369
split-complementary
#382183 #836921 #3B8321
monochromatic
#0E0821 #231552 #382183 #4D2DB4 #6C4CD2

Accessibility & contrast

On white

12.26
#382183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#382183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382183
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382183#FFFFFF#000000##FFFFFF
##3821831.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#163C50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #382183;
/* rgb */ color: rgb(56, 33, 131);
/* oklch */ color: oklch(34.6% 0.153 286.0);
Tailwind
colors: {
  custom: {
    50: '#785fa8',
    500: '#382183',
    950: '#000000',
  },
}
SCSS
$custom: #382183;
$custom-light: #785fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#382183",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 254.082,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.1533,
    "h": 286
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#382183
secondary
#9CB54B
accent
#E345BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382183

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

Preview Lab → · Contrast checker → · Palette generator →

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