#382887#382887

#382887 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.150 H 283.6°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#382887
RGBrgb(56, 40, 135)
HSLhsl(250, 54%, 34%)
HSVhsv(250, 70%, 53%)
CMYKcmyk(58.5%, 70.4%, 0%, 47.1%)
CIE-LABlab(24.02, 34.66, -50.71)
CIE-LCHlch(24.02, 61.43, 304.35°)
OKLaboklab(35.99% 0.0352 -0.1459)
OKLCHoklch(35.99% 0.15 283.6)
XYZxyz(6.7615, 4.1072, 23.3534)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382887 #778728
analogous
#284887 #382887 #682887
triadic
#382887 #873828 #288738
tetradic
#382887 #872848 #778728 #288768
square
#382887 #872848 #778728 #288768
split-complementary
#382887 #876828 #488728
monochromatic
#110C29 #241A58 #382887 #4C36B6 #6E5BCE

Accessibility & contrast

On white

11.53
#382887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#382887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382887
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382887#FFFFFF#000000##FFFFFF
##3828871.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#0F4154
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #382887;
/* rgb */ color: rgb(56, 40, 135);
/* oklch */ color: oklch(36.0% 0.150 283.6);
Tailwind
colors: {
  custom: {
    50: '#7863ab',
    500: '#382887',
    950: '#000000',
  },
}
SCSS
$custom: #382887;
$custom-light: #7863ab;
$custom-dark: #000000;
JSON
{
  "hex": "#382887",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 250.105,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.15012,
    "h": 283.6
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#382887
secondary
#A4B457
accent
#DE4AC5
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #382887

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

Preview Lab → · Contrast checker → · Palette generator →

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