#382174#382174

#382174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.134 H 289.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#382174
RGBrgb(56, 33, 116)
HSLhsl(257, 56%, 29%)
HSVhsv(257, 72%, 45%)
CMYKcmyk(51.7%, 71.6%, 0%, 54.5%)
CIE-LABlab(20.79, 32.77, -43.96)
CIE-LCHlch(20.79, 54.83, 306.71°)
OKLaboklab(33.14% 0.0454 -0.1261)
OKLCHoklch(33.14% 0.134 289.8)
XYZxyz(5.3262, 3.1892, 16.8545)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382174 #5D7421
analogous
#213374 #382174 #622174
triadic
#382174 #743821 #217438
tetradic
#382174 #742133 #5D7421 #217462
square
#382174 #742133 #5D7421 #217462
split-complementary
#382174 #746221 #337421
monochromatic
#0C0718 #211344 #382174 #4F2FA4 #6A45CA

Accessibility & contrast

On white

12.82
#382174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#382174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382174
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382174#FFFFFF#000000##FFFFFF
##3821741.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#243647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #382174;
/* rgb */ color: rgb(56, 33, 116);
/* oklch */ color: oklch(33.1% 0.134 289.8);
Tailwind
colors: {
  custom: {
    50: '#755e9d',
    500: '#382174',
    950: '#000000',
  },
}
SCSS
$custom: #382174;
$custom-light: #755e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#382174",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 256.627,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33142,
    "c": 0.134,
    "h": 289.8
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#382174
secondary
#8DA749
accent
#DF49B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #382174

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

Preview Lab → · Contrast checker → · Palette generator →

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