#462158#462158

#462158 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.6% C 0.101 H 313.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#462158
RGBrgb(70, 33, 88)
HSLhsl(280, 45%, 24%)
HSVhsv(280, 63%, 35%)
CMYKcmyk(20.5%, 62.5%, 0%, 65.5%)
CIE-LABlab(20.42, 28.23, -26.14)
CIE-LCHlch(20.42, 38.48, 317.20°)
OKLaboklab(32.6% 0.0689 -0.0733)
OKLCHoklch(32.6% 0.101 313.2)
XYZxyz(4.8308, 3.0945, 9.5735)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462158 #335821
analogous
#2A2158 #462158 #58214E
triadic
#462158 #584621 #215846
tetradic
#462158 #582A21 #335821 #214E58
square
#462158 #582A21 #335821 #214E58
split-complementary
#462158 #4E5821 #21582A
monochromatic
#120816 #23102B #462158 #693285 #8D42B1

Accessibility & contrast

On white

12.97
#462158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#462158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462158
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462158#FFFFFF#000000##FFFFFF
##4621581.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102F5A
Deuteranopia (green-blind)
#1E3257
Tritanopia (blue-blind)
#442B39
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #462158;
/* rgb */ color: rgb(70, 33, 88);
/* oklch */ color: oklch(32.6% 0.101 313.2);
Tailwind
colors: {
  custom: {
    50: '#7b5e87',
    500: '#462158',
    950: '#000000',
  },
}
SCSS
$custom: #462158;
$custom-light: #7b5e87;
$custom-dark: #000000;
JSON
{
  "hex": "#462158",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 280.364,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32595,
    "c": 0.10056,
    "h": 313.2
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#462158
secondary
#5F8C49
accent
#D5537D
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #462158

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

Preview Lab → · Contrast checker → · Palette generator →

#462158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva