#62179D#62179D

#62179D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.9% C 0.194 H 303.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#62179D
RGBrgb(98, 23, 157)
HSLhsl(274, 74%, 35%)
HSVhsv(274, 85%, 62%)
CMYKcmyk(37.6%, 85.4%, 0%, 38.4%)
CIE-LABlab(28.50, 54.99, -56.78)
CIE-LCHlch(28.50, 79.04, 314.08°)
OKLaboklab(40.9% 0.1074 -0.1621)
OKLCHoklch(40.9% 0.194 303.5)
XYZxyz(11.4278, 5.6438, 32.3791)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62179D #529D17
analogous
#1F179D #62179D #9D1795
triadic
#62179D #9D6217 #179D62
tetradic
#62179D #9D1F17 #529D17 #17959D
square
#62179D #9D1F17 #529D17 #17959D
split-complementary
#62179D #959D17 #179D1F
monochromatic
#1F0732 #410F68 #62179D #831FD2 #A04AE4

Accessibility & contrast

On white

9.86
#62179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#62179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62179D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62179D#FFFFFF#000000##FFFFFF
##62179D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#563E5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #62179d;
/* rgb */ color: rgb(98, 23, 157);
/* oklch */ color: oklch(40.9% 0.194 303.5);
Tailwind
colors: {
  custom: {
    50: '#9560bb',
    500: '#62179d',
    950: '#000000',
  },
}
SCSS
$custom: #62179d;
$custom-light: #9560bb;
$custom-dark: #000000;
JSON
{
  "hex": "#62179d",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 273.582,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.409,
    "c": 0.19446,
    "h": 303.5
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#62179D
secondary
#80C64A
accent
#F13789
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #62179D

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

Preview Lab → · Contrast checker → · Palette generator →

#62179D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva