#38156D#38156D

#38156D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 294.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#38156D
RGBrgb(56, 21, 109)
HSLhsl(264, 68%, 25%)
HSVhsv(264, 81%, 43%)
CMYKcmyk(48.6%, 80.7%, 0%, 57.3%)
CIE-LABlab(17.83, 37.15, -44.26)
CIE-LCHlch(17.83, 57.79, 310.01°)
OKLaboklab(30.85% 0.0586 -0.1269)
OKLCHoklch(30.85% 0.14 294.8)
XYZxyz(4.6586, 2.4811, 14.6985)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38156D #4A6D15
analogous
#151E6D #38156D #64156D
triadic
#38156D #6D3815 #156D38
tetradic
#38156D #6D151E #4A6D15 #156D64
square
#38156D #6D151E #4A6D15 #156D64
split-complementary
#38156D #6D6415 #1E6D15
monochromatic
#0D051A #1E0B3A #38156D #521FA0 #6D29D4

Accessibility & contrast

On white

14.04
#38156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#38156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38156D
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38156D#FFFFFF#000000##FFFFFF
##38156D1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#292D40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38156d;
/* rgb */ color: rgb(56, 21, 109);
/* oklch */ color: oklch(30.8% 0.140 294.8);
Tailwind
colors: {
  custom: {
    50: '#755798',
    500: '#38156d',
    950: '#000000',
  },
}
SCSS
$custom: #38156d;
$custom-light: #755798;
$custom-dark: #000000;
JSON
{
  "hex": "#38156d",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 263.864,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30849,
    "c": 0.1398,
    "h": 294.8
  },
  "luminance": 0.02481
}

Semantic roles & 50–950 ramp

primary
#38156D
secondary
#7AA33A
accent
#EB3DA6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38156D

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

Preview Lab → · Contrast checker → · Palette generator →

#38156D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva