#37198A#37198A

#37198A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.170 H 285.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#37198A
RGBrgb(55, 25, 138)
HSLhsl(256, 69%, 32%)
HSVhsv(256, 82%, 54%)
CMYKcmyk(60.1%, 81.9%, 0%, 45.9%)
CIE-LABlab(21.36, 43.51, -56.96)
CIE-LCHlch(21.36, 71.68, 307.37°)
OKLaboklab(34.19% 0.0445 -0.1641)
OKLCHoklch(34.19% 0.17 285.2)
XYZxyz(6.5092, 3.3421, 24.3419)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#37198A #6C8A19
analogous
#19348A #37198A #70198A
triadic
#37198A #8A3719 #198A37
tetradic
#37198A #8A1934 #6C8A19 #198A70
square
#37198A #8A1934 #6C8A19 #198A70
split-complementary
#37198A #8A7019 #348A19
monochromatic
#0E0622 #221056 #37198A #4C22BE #6A41DD

Accessibility & contrast

On white

12.59
#37198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #37198A
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##37198A#FFFFFF#000000##FFFFFF
##37198A1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #37198a;
/* rgb */ color: rgb(55, 25, 138);
/* oklch */ color: oklch(34.2% 0.170 285.2);
Tailwind
colors: {
  custom: {
    50: '#795bad',
    500: '#37198a',
    950: '#000000',
  },
}
SCSS
$custom: #37198a;
$custom-light: #795bad;
$custom-dark: #000000;
JSON
{
  "hex": "#37198a",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 255.929,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34185,
    "c": 0.17007,
    "h": 285.2
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#37198A
secondary
#9CBD42
accent
#EC3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #37198A

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

Preview Lab → · Contrast checker → · Palette generator →

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