#38198A#38198A

#38198A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.170 H 285.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#38198A
RGBrgb(56, 25, 138)
HSLhsl(256, 69%, 32%)
HSVhsv(256, 82%, 54%)
CMYKcmyk(59.4%, 81.9%, 0%, 45.9%)
CIE-LABlab(21.47, 43.63, -56.78)
CIE-LCHlch(21.47, 71.61, 307.54°)
OKLaboklab(34.28% 0.0461 -0.1636)
OKLCHoklch(34.28% 0.17 285.8)
XYZxyz(6.5646, 3.3706, 24.3445)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38198A #6B8A19
analogous
#19338A #38198A #71198A
triadic
#38198A #8A3819 #198A38
tetradic
#38198A #8A1933 #6B8A19 #198A71
square
#38198A #8A1933 #6B8A19 #198A71
split-complementary
#38198A #8A7119 #338A19
monochromatic
#0E0622 #231056 #38198A #4D22BE #6C41DD

Accessibility & contrast

On white

12.54
#38198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#38198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38198A
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38198A#FFFFFF#000000##FFFFFF
##38198A1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#0B3B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38198a;
/* rgb */ color: rgb(56, 25, 138);
/* oklch */ color: oklch(34.3% 0.170 285.8);
Tailwind
colors: {
  custom: {
    50: '#7a5bad',
    500: '#38198a',
    950: '#000000',
  },
}
SCSS
$custom: #38198a;
$custom-light: #7a5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#38198a",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 256.46,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.16997,
    "h": 285.8
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#38198A
secondary
#9BBD42
accent
#EC3CBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #38198A

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

Preview Lab → · Contrast checker → · Palette generator →

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