#381154#381154

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

Color values

HEX#381154
RGBrgb(56, 17, 84)
HSLhsl(275, 66%, 20%)
HSVhsv(275, 80%, 33%)
CMYKcmyk(33.3%, 79.8%, 0%, 67.1%)
CIE-LABlab(14.85, 32.26, -32.51)
CIE-LCHlch(14.85, 45.80, 314.78°)
OKLaboklab(28.04% 0.0693 -0.0923)
OKLCHoklch(28.04% 0.115 306.9)
XYZxyz(3.4312, 1.8818, 8.5682)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381154 #2D5411
analogous
#161154 #381154 #54114F
triadic
#381154 #543811 #115438
tetradic
#381154 #541611 #2D5411 #114F54
square
#381154 #541611 #2D5411 #114F54
split-complementary
#381154 #4F5411 #115416
monochromatic
#110519 #160721 #381154 #5A1B87 #7C26BA

Accessibility & contrast

On white

15.26
#381154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381154
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381154#FFFFFF#000000##FFFFFF
##3811541.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#332131
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #381154;
/* rgb */ color: rgb(56, 17, 84);
/* oklch */ color: oklch(28.0% 0.115 306.9);
Tailwind
colors: {
  custom: {
    50: '#725385',
    500: '#381154',
    950: '#000000',
  },
}
SCSS
$custom: #381154;
$custom-light: #725385;
$custom-dark: #000000;
JSON
{
  "hex": "#381154",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 274.925,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28041,
    "c": 0.11543,
    "h": 306.9
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#381154
secondary
#598D34
accent
#E93F86
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381154

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

Preview Lab → · Contrast checker → · Palette generator →

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