#38218A#38218A

#38218A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.162 H 284.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#38218A
RGBrgb(56, 33, 138)
HSLhsl(253, 61%, 34%)
HSVhsv(253, 76%, 54%)
CMYKcmyk(59.4%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.87, 39.62, -54.48)
CIE-LCHlch(22.87, 67.36, 306.03°)
OKLaboklab(35.26% 0.0405 -0.1569)
OKLCHoklch(35.26% 0.162 284.5)
XYZxyz(6.7608, 3.7630, 24.4099)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38218A #738A21
analogous
#213E8A #38218A #6C218A
triadic
#38218A #8A3821 #218A38
tetradic
#38218A #8A213E #738A21 #218A6C
square
#38218A #8A213E #738A21 #218A6C
split-complementary
#38218A #8A6C21 #3E8A21
monochromatic
#100927 #241559 #38218A #4C2DBB #6D50D5

Accessibility & contrast

On white

11.98
#38218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#38218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38218A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38218A#FFFFFF#000000##FFFFFF
##38218A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#0A3E54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38218a;
/* rgb */ color: rgb(56, 33, 138);
/* oklch */ color: oklch(35.3% 0.162 284.5);
Tailwind
colors: {
  custom: {
    50: '#795fad',
    500: '#38218a',
    950: '#000000',
  },
}
SCSS
$custom: #38218a;
$custom-light: #795fad;
$custom-dark: #000000;
JSON
{
  "hex": "#38218a",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 253.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35263,
    "c": 0.16205,
    "h": 284.5
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#38218A
secondary
#A1B94E
accent
#E543C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38218A

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

Preview Lab → · Contrast checker → · Palette generator →

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