#38236A#38236A

#38236A is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.6% C 0.118 H 292.2°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#38236A
RGBrgb(56, 35, 106)
HSLhsl(258, 50%, 28%)
HSVhsv(258, 67%, 42%)
CMYKcmyk(47.2%, 67%, 0%, 58.4%)
CIE-LABlab(20.37, 28.45, -38.17)
CIE-LCHlch(20.37, 47.60, 306.70°)
OKLaboklab(32.58% 0.0445 -0.1091)
OKLCHoklch(32.58% 0.118 292.2)
XYZxyz(4.8327, 3.0833, 13.9734)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38236A #556A23
analogous
#23326A #38236A #5B236A
triadic
#38236A #6A3823 #236A38
tetradic
#38236A #6A2332 #556A23 #236A5B
square
#38236A #6A2332 #556A23 #236A5B
split-complementary
#38236A #6A5B23 #326A23
monochromatic
#0C0817 #20143C #38236A #503298 #6A46C2

Accessibility & contrast

On white

12.99
#38236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#38236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38236A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38236A#FFFFFF#000000##FFFFFF
##38236A1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#293443
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38236a;
/* rgb */ color: rgb(56, 35, 106);
/* oklch */ color: oklch(32.6% 0.118 292.2);
Tailwind
colors: {
  custom: {
    50: '#735f95',
    500: '#38236a',
    950: '#000000',
  },
}
SCSS
$custom: #38236a;
$custom-light: #735f95;
$custom-dark: #000000;
JSON
{
  "hex": "#38236a",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 257.746,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32577,
    "c": 0.11781,
    "h": 292.2
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#38236A
secondary
#859D4B
accent
#DA4EB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #38236A

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

Preview Lab → · Contrast checker → · Palette generator →

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