#381272#381272

#381272 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.149 H 293.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#381272
RGBrgb(56, 18, 114)
HSLhsl(264, 73%, 26%)
HSVhsv(264, 84%, 45%)
CMYKcmyk(50.9%, 84.2%, 0%, 55.3%)
CIE-LABlab(17.86, 39.91, -47.46)
CIE-LCHlch(17.86, 62.01, 310.06°)
OKLaboklab(31.03% 0.0594 -0.1362)
OKLCHoklch(31.03% 0.149 293.6)
XYZxyz(4.8836, 2.4881, 16.1393)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381272 #4C7212
analogous
#121C72 #381272 #681272
triadic
#381272 #723812 #127238
tetradic
#381272 #72121C #4C7212 #127268
square
#381272 #72121C #4C7212 #127268
split-complementary
#381272 #726812 #1C7212
monochromatic
#0D041A #1E0A3D #381272 #521AA7 #6C23DC

Accessibility & contrast

On white

14.02
#381272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381272
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381272#FFFFFF#000000##FFFFFF
##3812721.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#262E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381272;
/* rgb */ color: rgb(56, 18, 114);
/* oklch */ color: oklch(31.0% 0.149 293.6);
Tailwind
colors: {
  custom: {
    50: '#76569b',
    500: '#381272',
    950: '#000000',
  },
}
SCSS
$custom: #381272;
$custom-light: #76569b;
$custom-dark: #000000;
JSON
{
  "hex": "#381272",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 263.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31025,
    "c": 0.14863,
    "h": 293.6
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#381272
secondary
#7CA937
accent
#EF38A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381272

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

Preview Lab → · Contrast checker → · Palette generator →

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