#62178E#62178E

#62178E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.180 H 308.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#62178E
RGBrgb(98, 23, 142)
HSLhsl(278, 72%, 32%)
HSVhsv(278, 84%, 56%)
CMYKcmyk(31%, 83.8%, 0%, 44.3%)
CIE-LABlab(27.19, 51.62, -49.68)
CIE-LCHlch(27.19, 71.64, 316.10°)
OKLaboklab(39.6% 0.1121 -0.1413)
OKLCHoklch(39.6% 0.18 308.4)
XYZxyz(10.2249, 5.1626, 26.0438)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62178E #438E17
analogous
#26178E #62178E #8E177F
triadic
#62178E #8E6217 #178E62
tetradic
#62178E #8E2617 #438E17 #177F8E
square
#62178E #8E2617 #438E17 #177F8E
split-complementary
#62178E #7F8E17 #178E26
monochromatic
#190625 #3E0E59 #62178E #8620C3 #A53FE0

Accessibility & contrast

On white

10.33
#62178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#62178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62178E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62178E#FFFFFF#000000##FFFFFF
##62178E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#5B3754
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62178e;
/* rgb */ color: rgb(98, 23, 142);
/* oklch */ color: oklch(39.6% 0.180 308.4);
Tailwind
colors: {
  custom: {
    50: '#945fb0',
    500: '#62178e',
    950: '#000000',
  },
}
SCSS
$custom: #62178e;
$custom-light: #945fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#62178e",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 277.815,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39595,
    "c": 0.18032,
    "h": 308.4
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#62178E
secondary
#70C040
accent
#EF397C
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62178E

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

Preview Lab → · Contrast checker → · Palette generator →

#62178E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva