#462197#462197

#462197 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.177 H 289.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#462197
RGBrgb(70, 33, 151)
HSLhsl(259, 64%, 36%)
HSVhsv(259, 78%, 59%)
CMYKcmyk(53.6%, 78.1%, 0%, 40.8%)
CIE-LABlab(25.63, 45.48, -57.93)
CIE-LCHlch(25.63, 73.65, 308.13°)
OKLaboklab(37.94% 0.0587 -0.1666)
OKLCHoklch(37.94% 0.177 289.4)
XYZxyz(8.6539, 4.6238, 29.7086)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462197 #729721
analogous
#213797 #462197 #812197
triadic
#462197 #974621 #219746
tetradic
#462197 #972137 #729721 #219781
square
#462197 #972137 #729721 #219781
split-complementary
#462197 #978121 #379721
monochromatic
#170B33 #2F1665 #462197 #5D2CC9 #8158DA

Accessibility & contrast

On white

10.91
#462197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#462197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462197
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462197#FFFFFF#000000##FFFFFF
##4621971.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#27425B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #462197;
/* rgb */ color: rgb(70, 33, 151);
/* oklch */ color: oklch(37.9% 0.177 289.4);
Tailwind
colors: {
  custom: {
    50: '#8361b7',
    500: '#462197',
    950: '#000000',
  },
}
SCSS
$custom: #462197;
$custom-light: #8361b7;
$custom-dark: #000000;
JSON
{
  "hex": "#462197",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 258.814,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.1766,
    "h": 289.4
  },
  "luminance": 0.04624
}

Semantic roles & 50–950 ramp

primary
#462197
secondary
#9DBE55
accent
#E741B3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #462197

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

Preview Lab → · Contrast checker → · Palette generator →

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