#38218E#38218E

#38218E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.167 H 283.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#38218E
RGBrgb(56, 33, 142)
HSLhsl(253, 62%, 34%)
HSVhsv(253, 77%, 56%)
CMYKcmyk(60.6%, 76.8%, 0%, 44.3%)
CIE-LABlab(23.27, 40.85, -56.31)
CIE-LCHlch(23.27, 69.57, 305.96°)
OKLaboklab(35.67% 0.0395 -0.1623)
OKLCHoklch(35.67% 0.167 283.7)
XYZxyz(7.0557, 3.8810, 25.9632)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38218E #778E21
analogous
#21408E #38218E #6F218E
triadic
#38218E #8E3821 #218E38
tetradic
#38218E #8E2140 #778E21 #218E6F
square
#38218E #8E2140 #778E21 #218E6F
split-complementary
#38218E #8E6F21 #408E21
monochromatic
#110A2B #24155C #38218E #4C2DC0 #6E52D7

Accessibility & contrast

On white

11.82
#38218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#38218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38218E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38218E#FFFFFF#000000##FFFFFF
##38218E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38218e;
/* rgb */ color: rgb(56, 33, 142);
/* oklch */ color: oklch(35.7% 0.167 283.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fb0',
    500: '#38218e',
    950: '#000000',
  },
}
SCSS
$custom: #38218e;
$custom-light: #7a5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#38218e",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 252.661,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35668,
    "c": 0.167,
    "h": 283.7
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#38218E
secondary
#A4BA50
accent
#E542C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38218E

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

Preview Lab → · Contrast checker → · Palette generator →

#38218E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva