#38115A#38115A

#38115A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.122 H 303.7°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#38115A
RGBrgb(56, 17, 90)
HSLhsl(272, 68%, 21%)
HSVhsv(272, 81%, 35%)
CMYKcmyk(37.8%, 81.1%, 0%, 64.7%)
CIE-LABlab(15.38, 33.83, -35.71)
CIE-LCHlch(15.38, 49.19, 313.46°)
OKLaboklab(28.58% 0.0678 -0.1017)
OKLCHoklch(28.58% 0.122 303.7)
XYZxyz(3.6764, 1.9798, 9.8593)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38115A #335A11
analogous
#14115A #38115A #5A1157
triadic
#38115A #5A3811 #115A38
tetradic
#38115A #5A1411 #335A11 #11575A
square
#38115A #5A1411 #335A11 #11575A
split-complementary
#38115A #575A11 #115A14
monochromatic
#10051A #180727 #38115A #581B8D #7824C1

Accessibility & contrast

On white

15.04
#38115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#38115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38115A
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38115A#FFFFFF#000000##FFFFFF
##38115A1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#312335
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #38115a;
/* rgb */ color: rgb(56, 17, 90);
/* oklch */ color: oklch(28.6% 0.122 303.7);
Tailwind
colors: {
  custom: {
    50: '#735489',
    500: '#38115a',
    950: '#000000',
  },
}
SCSS
$custom: #38115a;
$custom-light: #735489;
$custom-dark: #000000;
JSON
{
  "hex": "#38115a",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 272.055,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28578,
    "c": 0.1223,
    "h": 303.7
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#38115A
secondary
#609334
accent
#EB3D8E
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38115A

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

Preview Lab → · Contrast checker → · Palette generator →

#38115A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva