#62178B#62178B

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

Color values

HEX#62178B
RGBrgb(98, 23, 139)
HSLhsl(279, 72%, 32%)
HSVhsv(279, 83%, 55%)
CMYKcmyk(29.5%, 83.5%, 0%, 45.5%)
CIE-LABlab(26.94, 50.96, -48.22)
CIE-LCHlch(26.94, 70.16, 316.58°)
OKLaboklab(39.34% 0.1129 -0.137)
OKLCHoklch(39.34% 0.178 309.5)
XYZxyz(10.0027, 5.0737, 24.8735)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62178B #408B17
analogous
#28178B #62178B #8B177A
triadic
#62178B #8B6217 #178B62
tetradic
#62178B #8B2817 #408B17 #177A8B
square
#62178B #8B2817 #408B17 #177A8B
split-complementary
#62178B #7A8B17 #178B28
monochromatic
#180622 #3D0E56 #62178B #8720C0 #A63DDF

Accessibility & contrast

On white

10.42
#62178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #62178B
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62178B#FFFFFF#000000##FFFFFF
##62178B1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#5C3652
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62178b;
/* rgb */ color: rgb(98, 23, 139);
/* oklch */ color: oklch(39.3% 0.177 309.5);
Tailwind
colors: {
  custom: {
    50: '#935fae',
    500: '#62178b',
    950: '#000000',
  },
}
SCSS
$custom: #62178b;
$custom-light: #935fae;
$custom-dark: #000000;
JSON
{
  "hex": "#62178b",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 278.793,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39344,
    "c": 0.1775,
    "h": 309.5
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#62178B
secondary
#6CBF3F
accent
#EE3979
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62178B

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

Preview Lab → · Contrast checker → · Palette generator →

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