#38197C#38197C

#38197C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.153 H 289.3°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#38197C
RGBrgb(56, 25, 124)
HSLhsl(259, 66%, 29%)
HSVhsv(259, 80%, 49%)
CMYKcmyk(54.8%, 79.8%, 0%, 51.4%)
CIE-LABlab(20.01, 39.53, -50.35)
CIE-LCHlch(20.01, 64.02, 308.14°)
OKLaboklab(32.82% 0.0507 -0.1448)
OKLCHoklch(32.82% 0.153 289.3)
XYZxyz(5.6155, 2.9910, 19.3463)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38197C #5D7C19
analogous
#192C7C #38197C #6A197C
triadic
#38197C #7C3819 #197C38
tetradic
#38197C #7C192C #5D7C19 #197C6A
square
#38197C #7C192C #5D7C19 #197C6A
split-complementary
#38197C #7C6A19 #2C7C19
monochromatic
#0C0519 #210F49 #38197C #4F23AF #6A38D7

Accessibility & contrast

On white

13.14
#38197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#38197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38197C
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38197C#FFFFFF#000000##FFFFFF
##38197C1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#1E354A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38197c;
/* rgb */ color: rgb(56, 25, 124);
/* oklch */ color: oklch(32.8% 0.153 289.3);
Tailwind
colors: {
  custom: {
    50: '#775aa3',
    500: '#38197c',
    950: '#000000',
  },
}
SCSS
$custom: #38197c;
$custom-light: #775aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#38197c",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 258.788,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32825,
    "c": 0.15341,
    "h": 289.3
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#38197C
secondary
#8DB040
accent
#E93EB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38197C

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

Preview Lab → · Contrast checker → · Palette generator →

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