#462198#462198

#462198 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.178 H 289.2°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#462198
RGBrgb(70, 33, 152)
HSLhsl(259, 64%, 36%)
HSVhsv(259, 78%, 60%)
CMYKcmyk(53.9%, 78.3%, 0%, 40.4%)
CIE-LABlab(25.73, 45.76, -58.39)
CIE-LCHlch(25.73, 74.18, 308.09°)
OKLaboklab(38.04% 0.0584 -0.1679)
OKLCHoklch(38.04% 0.178 289.2)
XYZxyz(8.7355, 4.6564, 30.1382)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462198 #739821
analogous
#213898 #462198 #822198
triadic
#462198 #984621 #219846
tetradic
#462198 #982138 #739821 #219882
square
#462198 #982138 #739821 #219882
split-complementary
#462198 #988221 #389821
monochromatic
#180B33 #2F1666 #462198 #5D2CCA #8159DB

Accessibility & contrast

On white

10.87
#462198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#462198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462198
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462198#FFFFFF#000000##FFFFFF
##4621981.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#26435C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #462198;
/* rgb */ color: rgb(70, 33, 152);
/* oklch */ color: oklch(38.0% 0.178 289.2);
Tailwind
colors: {
  custom: {
    50: '#8361b7',
    500: '#462198',
    950: '#000000',
  },
}
SCSS
$custom: #462198;
$custom-light: #8361b7;
$custom-dark: #000000;
JSON
{
  "hex": "#462198",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 258.655,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38041,
    "c": 0.17776,
    "h": 289.2
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#462198
secondary
#9EBF56
accent
#E740B3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #462198

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

Preview Lab → · Contrast checker → · Palette generator →

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