#38156F#38156F

#38156F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.142 H 294.1°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#38156F
RGBrgb(56, 21, 111)
HSLhsl(263, 68%, 26%)
HSVhsv(263, 81%, 44%)
CMYKcmyk(49.5%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.03, 37.72, -45.24)
CIE-LCHlch(18.03, 58.90, 309.82°)
OKLaboklab(31.05% 0.058 -0.1298)
OKLCHoklch(31.05% 0.142 294.1)
XYZxyz(4.7675, 2.5246, 15.2720)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38156F #4C6F15
analogous
#151F6F #38156F #65156F
triadic
#38156F #6F3815 #156F38
tetradic
#38156F #6F151F #4C6F15 #156F65
square
#38156F #6F151F #4C6F15 #156F65
split-complementary
#38156F #6F6515 #1F6F15
monochromatic
#0D051A #1E0B3C #38156F #521FA2 #6C28D6

Accessibility & contrast

On white

13.95
#38156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#38156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38156F
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38156F#FFFFFF#000000##FFFFFF
##38156F1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#272E42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #38156f;
/* rgb */ color: rgb(56, 21, 111);
/* oklch */ color: oklch(31.0% 0.142 294.1);
Tailwind
colors: {
  custom: {
    50: '#755799',
    500: '#38156f',
    950: '#000000',
  },
}
SCSS
$custom: #38156f;
$custom-light: #755799;
$custom-dark: #000000;
JSON
{
  "hex": "#38156f",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 263.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.14216,
    "h": 294.1
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#38156F
secondary
#7CA53A
accent
#EB3DA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38156F

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

Preview Lab → · Contrast checker → · Palette generator →

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