#62258C#62258C

#62258C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.163 H 307.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#62258C
RGBrgb(98, 37, 140)
HSLhsl(276, 58%, 35%)
HSVhsv(276, 74%, 55%)
CMYKcmyk(30%, 73.6%, 0%, 45.1%)
CIE-LABlab(28.94, 45.70, -45.61)
CIE-LCHlch(28.94, 64.56, 315.06°)
OKLaboklab(40.77% 0.0999 -0.1294)
OKLCHoklch(40.77% 0.163 307.7)
XYZxyz(10.4312, 5.8134, 25.3784)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62258C #4F8C25
analogous
#2F258C #62258C #8C2583
triadic
#62258C #8C6225 #258C62
tetradic
#62258C #8C2F25 #4F8C25 #25838C
square
#62258C #8C2F25 #4F8C25 #25838C
split-complementary
#62258C #838C25 #258C2F
monochromatic
#1E0B2B #40185C #62258C #8432BC #A158D3

Accessibility & contrast

On white

9.71
#62258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#62258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62258C
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62258C#FFFFFF#000000##FFFFFF
##62258C1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#03458A
Tritanopia (blue-blind)
#5B3D56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #62258c;
/* rgb */ color: rgb(98, 37, 140);
/* oklch */ color: oklch(40.8% 0.163 307.7);
Tailwind
colors: {
  custom: {
    50: '#9365ae',
    500: '#62258c',
    950: '#000000',
  },
}
SCSS
$custom: #62258c;
$custom-light: #9365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#62258c",
  "rgb": {
    "r": 98,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 275.534,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40771,
    "c": 0.16348,
    "h": 307.7
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#62258C
secondary
#7DB855
accent
#E14686
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #62258C

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

Preview Lab → · Contrast checker → · Palette generator →

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