#38136A#38136A

#38136A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.138 H 296.3°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#38136A
RGBrgb(56, 19, 106)
HSLhsl(266, 70%, 25%)
HSVhsv(266, 82%, 42%)
CMYKcmyk(47.2%, 82.1%, 0%, 58.4%)
CIE-LABlab(17.21, 37.25, -43.32)
CIE-LCHlch(17.21, 57.14, 310.69°)
OKLaboklab(30.33% 0.0613 -0.1241)
OKLCHoklch(30.33% 0.138 296.3)
XYZxyz(4.4646, 2.3470, 13.8507)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38136A #456A13
analogous
#131A6A #38136A #64136A
triadic
#38136A #6A3813 #136A38
tetradic
#38136A #6A131A #456A13 #136A64
square
#38136A #6A131A #456A13 #136A64
split-complementary
#38136A #6A6413 #1A6A13
monochromatic
#0E051A #1D0A36 #38136A #531C9E #6F26D2

Accessibility & contrast

On white

14.29
#38136A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#38136A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38136A
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38136A#FFFFFF#000000##FFFFFF
##38136A1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#2A2B3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #38136a;
/* rgb */ color: rgb(56, 19, 106);
/* oklch */ color: oklch(30.3% 0.138 296.3);
Tailwind
colors: {
  custom: {
    50: '#755695',
    500: '#38136a',
    950: '#000000',
  },
}
SCSS
$custom: #38136a;
$custom-light: #755695;
$custom-dark: #000000;
JSON
{
  "hex": "#38136a",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 106
  },
  "hsl": {
    "h": 265.517,
    "s": 69.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30326,
    "c": 0.13845,
    "h": 296.3
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#38136A
secondary
#74A138
accent
#EC3BA1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38136A

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

Preview Lab → · Contrast checker → · Palette generator →

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