#38107E#38107E

#38107E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.164 H 290.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#38107E
RGBrgb(56, 16, 126)
HSLhsl(262, 77%, 28%)
HSVhsv(262, 87%, 49%)
CMYKcmyk(55.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(18.87, 44.02, -53.49)
CIE-LCHlch(18.87, 69.28, 309.45°)
OKLaboklab(32.1% 0.0561 -0.1539)
OKLCHoklch(32.1% 0.164 290)
XYZxyz(5.5810, 2.7174, 19.9651)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38107E #567E10
analogous
#101F7E #38107E #6F107E
triadic
#38107E #7E3810 #107E38
tetradic
#38107E #7E101F #567E10 #107E6F
square
#38107E #7E101F #567E10 #107E6F
split-complementary
#38107E #7E6F10 #1F7E10
monochromatic
#0C031B #200948 #38107E #5017B4 #6A25E3

Accessibility & contrast

On white

13.60
#38107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#38107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38107E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38107E#FFFFFF#000000##FFFFFF
##38107E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#1D3349
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #38107e;
/* rgb */ color: rgb(56, 16, 126);
/* oklch */ color: oklch(32.1% 0.164 290.0);
Tailwind
colors: {
  custom: {
    50: '#7856a4',
    500: '#38107e',
    950: '#000000',
  },
}
SCSS
$custom: #38107e;
$custom-light: #7856a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38107e",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 261.818,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32105,
    "c": 0.16377,
    "h": 290
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#38107E
secondary
#86B436
accent
#F434AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #38107E

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

Preview Lab → · Contrast checker → · Palette generator →

#38107E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva