#62178A#62178A

#62178A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.3% C 0.177 H 309.9°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#62178A
RGBrgb(98, 23, 138)
HSLhsl(279, 71%, 32%)
HSVhsv(279, 83%, 54%)
CMYKcmyk(29%, 83.3%, 0%, 45.9%)
CIE-LABlab(26.86, 50.74, -47.73)
CIE-LCHlch(26.86, 69.66, 316.75°)
OKLaboklab(39.26% 0.1132 -0.1355)
OKLCHoklch(39.26% 0.177 309.9)
XYZxyz(9.9299, 5.0447, 24.4904)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62178A #3F8A17
analogous
#28178A #62178A #8A1779
triadic
#62178A #8A6217 #178A62
tetradic
#62178A #8A2817 #3F8A17 #17798A
square
#62178A #8A2817 #3F8A17 #17798A
split-complementary
#62178A #798A17 #178A28
monochromatic
#170621 #3D0E56 #62178A #8720BE #A63DDF

Accessibility & contrast

On white

10.45
#62178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#62178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62178A
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62178A#FFFFFF#000000##FFFFFF
##62178A1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#5C3552
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #62178a;
/* rgb */ color: rgb(98, 23, 138);
/* oklch */ color: oklch(39.3% 0.177 309.9);
Tailwind
colors: {
  custom: {
    50: '#935fad',
    500: '#62178a',
    950: '#000000',
  },
}
SCSS
$custom: #62178a;
$custom-light: #935fad;
$custom-dark: #000000;
JSON
{
  "hex": "#62178a",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 279.13,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39261,
    "c": 0.17656,
    "h": 309.9
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#62178A
secondary
#6BBE3F
accent
#EE3A78
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62178A

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

Preview Lab → · Contrast checker → · Palette generator →

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