#62157F#62157F

#62157F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.168 H 314.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#62157F
RGBrgb(98, 21, 127)
HSLhsl(284, 72%, 29%)
HSVhsv(284, 83%, 50%)
CMYKcmyk(22.8%, 83.5%, 0%, 50.2%)
CIE-LABlab(25.76, 49.03, -42.62)
CIE-LCHlch(25.76, 64.97, 319.00°)
OKLaboklab(38.22% 0.1174 -0.1205)
OKLCHoklch(38.22% 0.168 314.2)
XYZxyz(9.1353, 4.6656, 20.4939)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62157F #327F15
analogous
#2D157F #62157F #7F1567
triadic
#62157F #7F6215 #157F62
tetradic
#62157F #7F2D15 #327F15 #15677F
square
#62157F #7F2D15 #327F15 #15677F
split-complementary
#62157F #677F15 #157F2D
monochromatic
#14041A #390C4A #62157F #8B1EB4 #AE31DD

Accessibility & contrast

On white

10.86
#62157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#62157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62157F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62157F#FFFFFF#000000##FFFFFF
##62157F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#0A3F7D
Tritanopia (blue-blind)
#5F2F4B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #62157f;
/* rgb */ color: rgb(98, 21, 127);
/* oklch */ color: oklch(38.2% 0.168 314.2);
Tailwind
colors: {
  custom: {
    50: '#935ea5',
    500: '#62157f',
    950: '#000000',
  },
}
SCSS
$custom: #62157f;
$custom-light: #935ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#62157f",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 283.585,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.16821,
    "h": 314.2
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

primary
#62157F
secondary
#5DB43C
accent
#EE396B
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62157F

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

Preview Lab → · Contrast checker → · Palette generator →

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