#38156C#38156C

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

Color values

HEX#38156C
RGBrgb(56, 21, 108)
HSLhsl(264, 67%, 25%)
HSVhsv(264, 81%, 42%)
CMYKcmyk(48.1%, 80.6%, 0%, 57.6%)
CIE-LABlab(17.74, 36.87, -43.77)
CIE-LCHlch(17.74, 57.23, 310.11°)
OKLaboklab(30.75% 0.059 -0.1255)
OKLCHoklch(30.75% 0.139 295.2)
XYZxyz(4.6051, 2.4597, 14.4166)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38156C #496C15
analogous
#151D6C #38156C #63156C
triadic
#38156C #6C3815 #156C38
tetradic
#38156C #6C151D #496C15 #156C63
square
#38156C #6C151D #496C15 #156C63
split-complementary
#38156C #6C6315 #1D6C15
monochromatic
#0D051A #1D0B39 #38156C #531F9F #6D29D2

Accessibility & contrast

On white

14.08
#38156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#38156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38156C
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38156C#FFFFFF#000000##FFFFFF
##38156C1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#292D40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38156c;
/* rgb */ color: rgb(56, 21, 108);
/* oklch */ color: oklch(30.8% 0.139 295.2);
Tailwind
colors: {
  custom: {
    50: '#755797',
    500: '#38156c',
    950: '#000000',
  },
}
SCSS
$custom: #38156c;
$custom-light: #755797;
$custom-dark: #000000;
JSON
{
  "hex": "#38156c",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 264.138,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30751,
    "c": 0.13863,
    "h": 295.2
  },
  "luminance": 0.0246
}

Semantic roles & 50–950 ramp

primary
#38156C
secondary
#79A33A
accent
#EA3DA5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38156C

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

Preview Lab → · Contrast checker → · Palette generator →

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