#381276#381276

#381276 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.153 H 292.2°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#381276
RGBrgb(56, 18, 118)
HSLhsl(263, 74%, 27%)
HSVhsv(263, 85%, 46%)
CMYKcmyk(52.5%, 84.7%, 0%, 53.7%)
CIE-LABlab(18.28, 41.02, -49.35)
CIE-LCHlch(18.28, 64.17, 309.73°)
OKLaboklab(31.44% 0.0579 -0.1418)
OKLCHoklch(31.44% 0.153 292.2)
XYZxyz(5.1163, 2.5812, 17.3647)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381276 #507612
analogous
#121E76 #381276 #6A1276
triadic
#381276 #763812 #127638
tetradic
#381276 #76121E #507612 #12766A
square
#381276 #76121E #507612 #12766A
split-complementary
#381276 #766A12 #1E7612
monochromatic
#0D041B #1F0A41 #381276 #511AAB #6B25DE

Accessibility & contrast

On white

13.85
#381276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381276
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381276#FFFFFF#000000##FFFFFF
##3812761.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#233045
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381276;
/* rgb */ color: rgb(56, 18, 118);
/* oklch */ color: oklch(31.4% 0.153 292.2);
Tailwind
colors: {
  custom: {
    50: '#77569e',
    500: '#381276',
    950: '#000000',
  },
}
SCSS
$custom: #381276;
$custom-light: #77569e;
$custom-dark: #000000;
JSON
{
  "hex": "#381276",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 262.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31439,
    "c": 0.15316,
    "h": 292.2
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#381276
secondary
#80AD37
accent
#F038AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381276

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

Preview Lab → · Contrast checker → · Palette generator →

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