#62178C#62178C

#62178C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.178 H 309.1°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#62178C
RGBrgb(98, 23, 140)
HSLhsl(278, 72%, 32%)
HSVhsv(278, 84%, 55%)
CMYKcmyk(30%, 83.6%, 0%, 45.1%)
CIE-LABlab(27.03, 51.18, -48.71)
CIE-LCHlch(27.03, 70.65, 316.42°)
OKLaboklab(39.43% 0.1126 -0.1384)
OKLCHoklch(39.43% 0.178 309.1)
XYZxyz(10.0761, 5.1031, 25.2601)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62178C #418C17
analogous
#28178C #62178C #8C177B
triadic
#62178C #8C6217 #178C62
tetradic
#62178C #8C2817 #418C17 #177B8C
square
#62178C #8C2817 #418C17 #177B8C
split-complementary
#62178C #7B8C17 #178C28
monochromatic
#180623 #3D0E57 #62178C #8720C1 #A53EDF

Accessibility & contrast

On white

10.39
#62178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#62178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62178C
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62178C#FFFFFF#000000##FFFFFF
##62178C1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#5B3653
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62178c;
/* rgb */ color: rgb(98, 23, 140);
/* oklch */ color: oklch(39.4% 0.178 309.1);
Tailwind
colors: {
  custom: {
    50: '#945fae',
    500: '#62178c',
    950: '#000000',
  },
}
SCSS
$custom: #62178c;
$custom-light: #945fae;
$custom-dark: #000000;
JSON
{
  "hex": "#62178c",
  "rgb": {
    "r": 98,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 278.462,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.17843,
    "h": 309.1
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#62178C
secondary
#6DBF3F
accent
#EF397A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62178C

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

Preview Lab → · Contrast checker → · Palette generator →

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