#422298#422298

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

Color values

HEX#422298
RGBrgb(66, 34, 152)
HSLhsl(256, 63%, 36%)
HSVhsv(256, 78%, 60%)
CMYKcmyk(56.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(25.47, 44.71, -58.84)
CIE-LCHlch(25.47, 73.90, 307.23°)
OKLaboklab(37.76% 0.0514 -0.1693)
OKLCHoklch(37.76% 0.177 286.9)
XYZxyz(8.4846, 4.5688, 30.1345)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422298 #789822
analogous
#223D98 #422298 #7D2298
triadic
#422298 #984222 #229842
tetradic
#422298 #98223D #789822 #22987D
square
#422298 #98223D #789822 #22987D
split-complementary
#422298 #987D22 #3D9822
monochromatic
#170C34 #2C1766 #422298 #582DCA #7D5ADA

Accessibility & contrast

On white

10.97
#422298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#422298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422298
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422298#FFFFFF#000000##FFFFFF
##4222981.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#1B435C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #422298;
/* rgb */ color: rgb(66, 34, 152);
/* oklch */ color: oklch(37.8% 0.177 286.9);
Tailwind
colors: {
  custom: {
    50: '#8161b7',
    500: '#422298',
    950: '#000000',
  },
}
SCSS
$custom: #422298;
$custom-light: #8161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#422298",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 256.271,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37755,
    "c": 0.17698,
    "h": 286.9
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#422298
secondary
#A2BE57
accent
#E641BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #422298

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

Preview Lab → · Contrast checker → · Palette generator →

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