#462874#462874

#462874 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.8% C 0.125 H 298.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#462874
RGBrgb(70, 40, 116)
HSLhsl(264, 49%, 31%)
HSVhsv(264, 66%, 45%)
CMYKcmyk(39.7%, 65.5%, 0%, 54.5%)
CIE-LABlab(23.94, 31.66, -38.77)
CIE-LCHlch(23.94, 50.06, 309.23°)
OKLaboklab(35.79% 0.0586 -0.1103)
OKLCHoklch(35.79% 0.125 298)
XYZxyz(6.4362, 4.0805, 16.9681)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462874 #567428
analogous
#283074 #462874 #6C2874
triadic
#462874 #744628 #287446
tetradic
#462874 #742830 #567428 #28746C
square
#462874 #742830 #567428 #28746C
split-complementary
#462874 #746C28 #307428
monochromatic
#0F0919 #2B1846 #462874 #6138A2 #7F53C4

Accessibility & contrast

On white

11.56
#462874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#462874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462874
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462874#FFFFFF#000000##FFFFFF
##4628741.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#033872
Tritanopia (blue-blind)
#3B394A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #462874;
/* rgb */ color: rgb(70, 40, 116);
/* oklch */ color: oklch(35.8% 0.125 298.0);
Tailwind
colors: {
  custom: {
    50: '#7d649d',
    500: '#462874',
    950: '#000000',
  },
}
SCSS
$custom: #462874;
$custom-light: #7d649d;
$custom-dark: #000000;
JSON
{
  "hex": "#462874",
  "rgb": {
    "r": 70,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 263.684,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.12491,
    "h": 298
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#462874
secondary
#85A652
accent
#D850A2
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050E
muted
#7C7A7E

Preview Lab

Preview with #462874

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

Preview Lab → · Contrast checker → · Palette generator →

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