#381252#381252

#381252 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 307.8°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#381252
RGBrgb(56, 18, 82)
HSLhsl(276, 64%, 20%)
HSVhsv(276, 78%, 32%)
CMYKcmyk(31.7%, 78%, 0%, 67.8%)
CIE-LABlab(14.86, 31.25, -31.14)
CIE-LCHlch(14.86, 44.12, 315.10°)
OKLaboklab(27.99% 0.0685 -0.0883)
OKLCHoklch(27.99% 0.112 307.8)
XYZxyz(3.3699, 1.8826, 8.1669)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381252 #2C5212
analogous
#181252 #381252 #52124C
triadic
#381252 #523812 #125238
tetradic
#381252 #521812 #2C5212 #124C52
square
#381252 #521812 #2C5212 #124C52
split-complementary
#381252 #4C5212 #125218
monochromatic
#110619 #160720 #381252 #5A1D84 #7D28B6

Accessibility & contrast

On white

15.25
#381252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#381252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381252
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381252#FFFFFF#000000##FFFFFF
##3812521.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#022651
Tritanopia (blue-blind)
#342130
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #381252;
/* rgb */ color: rgb(56, 18, 82);
/* oklch */ color: oklch(28.0% 0.112 307.8);
Tailwind
colors: {
  custom: {
    50: '#725483',
    500: '#381252',
    950: '#000000',
  },
}
SCSS
$custom: #381252;
$custom-light: #725483;
$custom-dark: #000000;
JSON
{
  "hex": "#381252",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 275.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27991,
    "c": 0.11179,
    "h": 307.8
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#381252
secondary
#588B35
accent
#E74184
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381252

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

Preview Lab → · Contrast checker → · Palette generator →

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