#38226A#38226A

#38226A is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.4% C 0.119 H 292.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#38226A
RGBrgb(56, 34, 106)
HSLhsl(258, 51%, 27%)
HSVhsv(258, 68%, 42%)
CMYKcmyk(47.2%, 67.9%, 0%, 58.4%)
CIE-LABlab(20.14, 29.07, -38.54)
CIE-LCHlch(20.14, 48.27, 307.02°)
OKLaboklab(32.41% 0.0457 -0.1102)
OKLCHoklch(32.41% 0.119 292.5)
XYZxyz(4.8037, 3.0253, 13.9637)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38226A #546A22
analogous
#22306A #38226A #5C226A
triadic
#38226A #6A3822 #226A38
tetradic
#38226A #6A2230 #546A22 #226A5C
square
#38226A #6A2230 #546A22 #226A5C
split-complementary
#38226A #6A5C22 #306A22
monochromatic
#0C0717 #20133C #38226A #503198 #6A44C3

Accessibility & contrast

On white

13.08
#38226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#38226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38226A
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38226A#FFFFFF#000000##FFFFFF
##38226A1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#293342
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38226a;
/* rgb */ color: rgb(56, 34, 106);
/* oklch */ color: oklch(32.4% 0.119 292.5);
Tailwind
colors: {
  custom: {
    50: '#735e95',
    500: '#38226a',
    950: '#000000',
  },
}
SCSS
$custom: #38226a;
$custom-light: #735e95;
$custom-dark: #000000;
JSON
{
  "hex": "#38226a",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 258.333,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32411,
    "c": 0.11927,
    "h": 292.5
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#38226A
secondary
#849E4A
accent
#DB4DB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #38226A

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

Preview Lab → · Contrast checker → · Palette generator →

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