#38218C#38218C

#38218C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.165 H 284.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#38218C
RGBrgb(56, 33, 140)
HSLhsl(253, 62%, 34%)
HSVhsv(253, 76%, 55%)
CMYKcmyk(60%, 76.4%, 0%, 45.1%)
CIE-LABlab(23.07, 40.23, -55.39)
CIE-LCHlch(23.07, 68.46, 305.99°)
OKLaboklab(35.47% 0.04 -0.1596)
OKLCHoklch(35.47% 0.165 284.1)
XYZxyz(6.9069, 3.8215, 25.1795)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38218C #758C21
analogous
#21408C #38218C #6E218C
triadic
#38218C #8C3821 #218C38
tetradic
#38218C #8C2140 #758C21 #218C6E
square
#38218C #8C2140 #758C21 #218C6E
split-complementary
#38218C #8C6E21 #408C21
monochromatic
#100A29 #24155A #38218C #4C2DBE #6E51D6

Accessibility & contrast

On white

11.90
#38218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#38218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38218C
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38218C#FFFFFF#000000##FFFFFF
##38218C1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#053F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38218c;
/* rgb */ color: rgb(56, 33, 140);
/* oklch */ color: oklch(35.5% 0.165 284.1);
Tailwind
colors: {
  custom: {
    50: '#795faf',
    500: '#38218c',
    950: '#000000',
  },
}
SCSS
$custom: #38218c;
$custom-light: #795faf;
$custom-dark: #000000;
JSON
{
  "hex": "#38218c",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 252.897,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.16453,
    "h": 284.1
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#38218C
secondary
#A3B94F
accent
#E543C2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38218C

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

Preview Lab → · Contrast checker → · Palette generator →

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