#462898#462898

#462898 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.170 H 288.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#462898
RGBrgb(70, 40, 152)
HSLhsl(256, 58%, 38%)
HSVhsv(256, 74%, 60%)
CMYKcmyk(53.9%, 73.7%, 0%, 40.4%)
CIE-LABlab(26.98, 42.22, -56.34)
CIE-LCHlch(26.98, 70.41, 306.85°)
OKLaboklab(38.92% 0.0527 -0.162)
OKLCHoklch(38.92% 0.17 288)
XYZxyz(8.9504, 5.0862, 30.2098)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462898 #7A9828
analogous
#284298 #462898 #7E2898
triadic
#462898 #984628 #289846
tetradic
#462898 #982842 #7A9828 #28987E
square
#462898 #982842 #7A9828 #28987E
split-complementary
#462898 #987E28 #429828
monochromatic
#190F37 #301B68 #462898 #5C35C8 #8364D6

Accessibility & contrast

On white

10.41
#462898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#462898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462898
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462898#FFFFFF#000000##FFFFFF
##4628981.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#26465D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #462898;
/* rgb */ color: rgb(70, 40, 152);
/* oklch */ color: oklch(38.9% 0.170 288.0);
Tailwind
colors: {
  custom: {
    50: '#8265b7',
    500: '#462898',
    950: '#000000',
  },
}
SCSS
$custom: #462898;
$custom-light: #8265b7;
$custom-dark: #000000;
JSON
{
  "hex": "#462898",
  "rgb": {
    "r": 70,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 256.071,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38918,
    "c": 0.17032,
    "h": 288
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#462898
secondary
#A3BC60
accent
#E246B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #462898

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

Preview Lab → · Contrast checker → · Palette generator →

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