#62318B#62318B

#62318B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.146 H 306.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#62318B
RGBrgb(98, 49, 139)
HSLhsl(273, 48%, 37%)
HSVhsv(273, 65%, 55%)
CMYKcmyk(29.5%, 64.7%, 0%, 45.5%)
CIE-LABlab(31.01, 39.49, -41.63)
CIE-LCHlch(31.01, 57.38, 313.49°)
OKLaboklab(42.24% 0.0861 -0.1178)
OKLCHoklch(42.24% 0.146 306.2)
XYZxyz(10.7945, 6.6575, 25.1374)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62318B #5A8B31
analogous
#35318B #62318B #8B3187
triadic
#62318B #8B6231 #318B62
tetradic
#62318B #8B3531 #5A8B31 #31878B
square
#62318B #8B3531 #5A8B31 #31878B
split-complementary
#62318B #878B31 #318B35
monochromatic
#221131 #42215E #62318B #8241B8 #9F6BCB

Accessibility & contrast

On white

9.01
#62318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#62318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62318B
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62318B#FFFFFF#000000##FFFFFF
##62318B1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#1D4989
Tritanopia (blue-blind)
#5B4459
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #62318b;
/* rgb */ color: rgb(98, 49, 139);
/* oklch */ color: oklch(42.2% 0.146 306.2);
Tailwind
colors: {
  custom: {
    50: '#926cad',
    500: '#62318b',
    950: '#000000',
  },
}
SCSS
$custom: #62318b;
$custom-light: #926cad;
$custom-dark: #000000;
JSON
{
  "hex": "#62318b",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 272.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42237,
    "c": 0.14589,
    "h": 306.2
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#62318B
secondary
#88B265
accent
#D7508E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #62318B

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

Preview Lab → · Contrast checker → · Palette generator →

#62318B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva