#381775#381775

#381775 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.147 H 291.7°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#381775
RGBrgb(56, 23, 117)
HSLhsl(261, 67%, 27%)
HSVhsv(261, 80%, 46%)
CMYKcmyk(52.1%, 80.3%, 0%, 54.1%)
CIE-LABlab(18.96, 38.47, -47.59)
CIE-LCHlch(18.96, 61.20, 308.95°)
OKLaboklab(31.88% 0.0545 -0.1367)
OKLCHoklch(31.88% 0.147 291.7)
XYZxyz(5.1473, 2.7377, 17.0834)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381775 #547517
analogous
#172575 #381775 #671775
triadic
#381775 #753817 #177538
tetradic
#381775 #751725 #547517 #177567
square
#381775 #751725 #547517 #177567
split-complementary
#381775 #756717 #257517
monochromatic
#0C051A #200D42 #381775 #5021A8 #6A30D6

Accessibility & contrast

On white

13.57
#381775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381775
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381775#FFFFFF#000000##FFFFFF
##3817751.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#233145
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381775;
/* rgb */ color: rgb(56, 23, 117);
/* oklch */ color: oklch(31.9% 0.147 291.7);
Tailwind
colors: {
  custom: {
    50: '#76589e',
    500: '#381775',
    950: '#000000',
  },
}
SCSS
$custom: #381775;
$custom-light: #76589e;
$custom-dark: #000000;
JSON
{
  "hex": "#381775",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 261.064,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3188,
    "c": 0.14713,
    "h": 291.7
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#381775
secondary
#84AA3D
accent
#EA3EAE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381775

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

Preview Lab → · Contrast checker → · Palette generator →

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