#38227A#38227A

#38227A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.141 H 287.9°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#38227A
RGBrgb(56, 34, 122)
HSLhsl(255, 56%, 31%)
HSVhsv(255, 72%, 48%)
CMYKcmyk(54.1%, 72.1%, 0%, 52.2%)
CIE-LABlab(21.54, 34.06, -46.57)
CIE-LCHlch(21.54, 57.69, 306.18°)
OKLaboklab(33.85% 0.0432 -0.1337)
OKLCHoklch(33.85% 0.141 287.9)
XYZxyz(5.7147, 3.3897, 18.7617)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38227A #647A22
analogous
#22387A #38227A #64227A
triadic
#38227A #7A3822 #227A38
tetradic
#38227A #7A2238 #647A22 #227A64
square
#38227A #7A2238 #647A22 #227A64
split-complementary
#38227A #7A6422 #387A22
monochromatic
#0C071A #22154A #38227A #4E2FAA #6B4ACD

Accessibility & contrast

On white

12.51
#38227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#38227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38227A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38227A#FFFFFF#000000##FFFFFF
##38227A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#1F394B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38227a;
/* rgb */ color: rgb(56, 34, 122);
/* oklch */ color: oklch(33.9% 0.141 287.9);
Tailwind
colors: {
  custom: {
    50: '#765fa1',
    500: '#38227a',
    950: '#000000',
  },
}
SCSS
$custom: #38227a;
$custom-light: #765fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#38227a",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 255,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3385,
    "c": 0.14055,
    "h": 287.9
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#38227A
secondary
#94AD4B
accent
#E048BA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38227A

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

Preview Lab → · Contrast checker → · Palette generator →

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