#38198F#38198F

#38198F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.176 H 284.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#38198F
RGBrgb(56, 25, 143)
HSLhsl(256, 70%, 33%)
HSVhsv(256, 83%, 56%)
CMYKcmyk(60.8%, 82.5%, 0%, 43.9%)
CIE-LABlab(22.01, 45.09, -59.01)
CIE-LCHlch(22.01, 74.26, 307.38°)
OKLaboklab(34.82% 0.0445 -0.1701)
OKLCHoklch(34.82% 0.176 284.7)
XYZxyz(6.9349, 3.5187, 26.2950)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38198F #708F19
analogous
#19358F #38198F #73198F
triadic
#38198F #8F3819 #198F38
tetradic
#38198F #8F1935 #708F19 #198F73
square
#38198F #8F1935 #708F19 #198F73
split-complementary
#38198F #8F7319 #358F19
monochromatic
#0F0727 #24105B #38198F #4C22C3 #6D44DE

Accessibility & contrast

On white

12.33
#38198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#38198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38198F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38198F#FFFFFF#000000##FFFFFF
##38198F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38198f;
/* rgb */ color: rgb(56, 25, 143);
/* oklch */ color: oklch(34.8% 0.176 284.7);
Tailwind
colors: {
  custom: {
    50: '#7a5bb1',
    500: '#38198f',
    950: '#000000',
  },
}
SCSS
$custom: #38198f;
$custom-light: #7a5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#38198f",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 255.763,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34819,
    "c": 0.17579,
    "h": 284.7
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#38198F
secondary
#9FBF44
accent
#ED3BBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38198F

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

Preview Lab → · Contrast checker → · Palette generator →

#38198F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva