#462798#462798

#462798 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.171 H 288.2°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#462798
RGBrgb(70, 39, 152)
HSLhsl(256, 59%, 37%)
HSVhsv(256, 74%, 60%)
CMYKcmyk(53.9%, 74.3%, 0%, 40.4%)
CIE-LABlab(26.79, 42.75, -56.65)
CIE-LCHlch(26.79, 70.97, 307.04°)
OKLaboklab(38.78% 0.0536 -0.1629)
OKLCHoklch(38.78% 0.171 288.2)
XYZxyz(8.9171, 5.0197, 30.1987)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462798 #799827
analogous
#274198 #462798 #7E2798
triadic
#462798 #984627 #279846
tetradic
#462798 #982741 #799827 #27987E
square
#462798 #982741 #799827 #27987E
split-complementary
#462798 #987E27 #419827
monochromatic
#190E37 #301B67 #462798 #5C33C9 #8263D7

Accessibility & contrast

On white

10.48
#462798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#462798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462798
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462798#FFFFFF#000000##FFFFFF
##4627981.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#26465D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #462798;
/* rgb */ color: rgb(70, 39, 152);
/* oklch */ color: oklch(38.8% 0.171 288.2);
Tailwind
colors: {
  custom: {
    50: '#8264b7',
    500: '#462798',
    950: '#000000',
  },
}
SCSS
$custom: #462798;
$custom-light: #8264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#462798",
  "rgb": {
    "r": 70,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 256.46,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.17144,
    "h": 288.2
  },
  "luminance": 0.0502
}

Semantic roles & 50–950 ramp

primary
#462798
secondary
#A3BC5E
accent
#E245B7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #462798

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

Preview Lab → · Contrast checker → · Palette generator →

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