#382283#382283

#382283 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.152 H 285.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#382283
RGBrgb(56, 34, 131)
HSLhsl(254, 59%, 32%)
HSVhsv(254, 74%, 51%)
CMYKcmyk(57.3%, 74%, 0%, 48.6%)
CIE-LABlab(22.38, 36.88, -50.89)
CIE-LCHlch(22.38, 62.85, 305.94°)
OKLaboklab(34.71% 0.0414 -0.1464)
OKLCHoklch(34.71% 0.152 285.8)
XYZxyz(6.2984, 3.6231, 21.8358)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382283 #6D8322
analogous
#223D83 #382283 #682283
triadic
#382283 #833822 #228338
tetradic
#382283 #83223D #6D8322 #228368
square
#382283 #83223D #6D8322 #228368
split-complementary
#382283 #836822 #3D8322
monochromatic
#0E0922 #231552 #382283 #4D2FB4 #6C4ED1

Accessibility & contrast

On white

12.18
#382283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#382283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382283
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382283#FFFFFF#000000##FFFFFF
##3822831.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382283;
/* rgb */ color: rgb(56, 34, 131);
/* oklch */ color: oklch(34.7% 0.152 285.8);
Tailwind
colors: {
  custom: {
    50: '#775fa8',
    500: '#382283',
    950: '#000000',
  },
}
SCSS
$custom: #382283;
$custom-light: #775fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#382283",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 253.608,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3471,
    "c": 0.15214,
    "h": 285.8
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#382283
secondary
#9DB44C
accent
#E246BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #382283

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

Preview Lab → · Contrast checker → · Palette generator →

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