#38156A#38156A

#38156A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.136 H 295.9°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#38156A
RGBrgb(56, 21, 106)
HSLhsl(265, 67%, 25%)
HSVhsv(265, 80%, 42%)
CMYKcmyk(47.2%, 80.2%, 0%, 58.4%)
CIE-LABlab(17.54, 36.30, -42.78)
CIE-LCHlch(17.54, 56.11, 310.32°)
OKLaboklab(30.56% 0.0595 -0.1226)
OKLCHoklch(30.56% 0.136 295.9)
XYZxyz(4.4999, 2.4176, 13.8624)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38156A #476A15
analogous
#151C6A #38156A #63156A
triadic
#38156A #6A3815 #156A38
tetradic
#38156A #6A151C #476A15 #156A63
square
#38156A #6A151C #476A15 #156A63
split-complementary
#38156A #6A6315 #1C6A15
monochromatic
#0D051A #1D0B37 #38156A #531F9D #6E29D0

Accessibility & contrast

On white

14.15
#38156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#38156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38156A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38156A#FFFFFF#000000##FFFFFF
##38156A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#2A2C3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38156a;
/* rgb */ color: rgb(56, 21, 106);
/* oklch */ color: oklch(30.6% 0.136 295.9);
Tailwind
colors: {
  custom: {
    50: '#745795',
    500: '#38156a',
    950: '#000000',
  },
}
SCSS
$custom: #38156a;
$custom-light: #745795;
$custom-dark: #000000;
JSON
{
  "hex": "#38156a",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 264.706,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.13626,
    "h": 295.9
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#38156A
secondary
#76A13A
accent
#EA3EA3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38156A

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

Preview Lab → · Contrast checker → · Palette generator →

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