#382282#382282

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

Color values

HEX#382282
RGBrgb(56, 34, 130)
HSLhsl(254, 59%, 32%)
HSVhsv(254, 74%, 51%)
CMYKcmyk(56.9%, 73.8%, 0%, 49%)
CIE-LABlab(22.29, 36.57, -50.41)
CIE-LCHlch(22.29, 62.28, 305.96°)
OKLaboklab(34.61% 0.0416 -0.145)
OKLCHoklch(34.61% 0.151 286)
XYZxyz(6.2310, 3.5962, 21.4806)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382282 #6C8222
analogous
#223C82 #382282 #682282
triadic
#382282 #823822 #228238
tetradic
#382282 #82223C #6C8222 #228268
square
#382282 #82223C #6C8222 #228268
split-complementary
#382282 #826822 #3C8222
monochromatic
#0E0921 #231551 #382282 #4D2FB3 #6C4ED1

Accessibility & contrast

On white

12.21
#382282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382282
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382282#FFFFFF#000000##FFFFFF
##3822821.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#173C4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #382282;
/* rgb */ color: rgb(56, 34, 130);
/* oklch */ color: oklch(34.6% 0.151 286.0);
Tailwind
colors: {
  custom: {
    50: '#775fa7',
    500: '#382282',
    950: '#000000',
  },
}
SCSS
$custom: #382282;
$custom-light: #775fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#382282",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 253.75,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.15087,
    "h": 286
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#382282
secondary
#9CB44C
accent
#E246BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #382282

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

Preview Lab → · Contrast checker → · Palette generator →

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