#62157C#62157C

#62157C is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.0% C 0.165 H 315.5°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#62157C
RGBrgb(98, 21, 124)
HSLhsl(285, 71%, 28%)
HSVhsv(285, 83%, 49%)
CMYKcmyk(21%, 83.1%, 0%, 51.4%)
CIE-LABlab(25.53, 48.41, -41.09)
CIE-LCHlch(25.53, 63.50, 319.67°)
OKLaboklab(37.98% 0.118 -0.116)
OKLCHoklch(37.98% 0.165 315.5)
XYZxyz(8.9427, 4.5886, 19.4795)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62157C #2F7C15
analogous
#2E157C #62157C #7C1562
triadic
#62157C #7C6215 #157C62
tetradic
#62157C #7C2E15 #2F7C15 #15627C
square
#62157C #7C2E15 #2F7C15 #15627C
split-complementary
#62157C #627C15 #157C2E
monochromatic
#15041A #390C48 #62157C #8B1EB0 #B030DC

Accessibility & contrast

On white

10.95
#62157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#62157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62157C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62157C#FFFFFF#000000##FFFFFF
##62157C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#103E7A
Tritanopia (blue-blind)
#602E49
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #62157c;
/* rgb */ color: rgb(98, 21, 124);
/* oklch */ color: oklch(38.0% 0.165 315.5);
Tailwind
colors: {
  custom: {
    50: '#935da3',
    500: '#62157c',
    950: '#000000',
  },
}
SCSS
$custom: #62157c;
$custom-light: #935da3;
$custom-dark: #000000;
JSON
{
  "hex": "#62157c",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 284.854,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.16549,
    "h": 315.5
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#62157C
secondary
#59B13C
accent
#EE3A67
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62157C

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

Preview Lab → · Contrast checker → · Palette generator →

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