#62178D#62178D

#62178D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.179 H 308.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#62178D
RGBrgb(98, 23, 141)
HSLhsl(278, 72%, 32%)
HSVhsv(278, 84%, 55%)
CMYKcmyk(30.5%, 83.7%, 0%, 44.7%)
CIE-LABlab(27.11, 51.40, -49.19)
CIE-LCHlch(27.11, 71.15, 316.26°)
OKLaboklab(39.51% 0.1123 -0.1398)
OKLCHoklch(39.51% 0.179 308.8)
XYZxyz(10.1501, 5.1327, 25.6501)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62178D #428D17
analogous
#27178D #62178D #8D177D
triadic
#62178D #8D6217 #178D62
tetradic
#62178D #8D2717 #428D17 #177D8D
square
#62178D #8D2717 #428D17 #177D8D
split-complementary
#62178D #7D8D17 #178D27
monochromatic
#190624 #3D0E58 #62178D #8720C2 #A53FE0

Accessibility & contrast

On white

10.36
#62178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #62178D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62178D#FFFFFF#000000##FFFFFF
##62178D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#5B3753
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62178d;
/* rgb */ color: rgb(98, 23, 141);
/* oklch */ color: oklch(39.5% 0.179 308.8);
Tailwind
colors: {
  custom: {
    50: '#945faf',
    500: '#62178d',
    950: '#000000',
  },
}
SCSS
$custom: #62178d;
$custom-light: #945faf;
$custom-dark: #000000;
JSON
{
  "hex": "#62178d",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 278.136,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39511,
    "c": 0.17938,
    "h": 308.8
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#62178D
secondary
#6FC040
accent
#EF397B
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62178D

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

Preview Lab → · Contrast checker → · Palette generator →

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