#38197A#38197A

#38197A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.151 H 289.9°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#38197A
RGBrgb(56, 25, 122)
HSLhsl(259, 66%, 29%)
HSVhsv(259, 80%, 48%)
CMYKcmyk(54.1%, 79.5%, 0%, 52.2%)
CIE-LABlab(19.81, 38.95, -49.41)
CIE-LCHlch(19.81, 62.92, 308.25°)
OKLaboklab(32.62% 0.0513 -0.142)
OKLCHoklch(32.62% 0.151 289.9)
XYZxyz(5.4904, 2.9409, 18.6869)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38197A #5B7A19
analogous
#192B7A #38197A #69197A
triadic
#38197A #7A3819 #197A38
tetradic
#38197A #7A192B #5B7A19 #197A69
square
#38197A #7A192B #5B7A19 #197A69
split-complementary
#38197A #7A6919 #2B7A19
monochromatic
#0C0519 #210F47 #38197A #4F23AD #6A37D6

Accessibility & contrast

On white

13.22
#38197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#38197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38197A
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38197A#FFFFFF#000000##FFFFFF
##38197A1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#203449
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38197a;
/* rgb */ color: rgb(56, 25, 122);
/* oklch */ color: oklch(32.6% 0.151 289.9);
Tailwind
colors: {
  custom: {
    50: '#775aa1',
    500: '#38197a',
    950: '#000000',
  },
}
SCSS
$custom: #38197a;
$custom-light: #775aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#38197a",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 259.175,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32623,
    "c": 0.15101,
    "h": 289.9
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#38197A
secondary
#8BAF40
accent
#E93FB3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38197A

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

Preview Lab → · Contrast checker → · Palette generator →

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