#422261#422261

#422261 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.9% C 0.109 H 304.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#422261
RGBrgb(66, 34, 97)
HSLhsl(270, 48%, 26%)
HSVhsv(270, 65%, 38%)
CMYKcmyk(32%, 64.9%, 0%, 62%)
CIE-LABlab(20.69, 28.88, -31.70)
CIE-LCHlch(20.69, 42.88, 312.34°)
OKLaboklab(32.87% 0.0616 -0.0897)
OKLCHoklch(32.87% 0.109 304.5)
XYZxyz(4.9760, 3.1654, 11.6558)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#422261 #416122
analogous
#222261 #422261 #612260
triadic
#422261 #614222 #226142
tetradic
#422261 #612222 #416122 #226061
square
#422261 #612222 #416122 #226061
split-complementary
#422261 #606122 #226122
monochromatic
#0F0817 #231234 #422261 #61328E #8042BC

Accessibility & contrast

On white

12.86
#422261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#422261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #422261
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##422261#FFFFFF#000000##FFFFFF
##4222611.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023163
Deuteranopia (green-blind)
#133260
Tritanopia (blue-blind)
#3C2F3E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #422261;
/* rgb */ color: rgb(66, 34, 97);
/* oklch */ color: oklch(32.9% 0.109 304.5);
Tailwind
colors: {
  custom: {
    50: '#795f8e',
    500: '#422261',
    950: '#000000',
  },
}
SCSS
$custom: #422261;
$custom-light: #795f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#422261",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 97
  },
  "hsl": {
    "h": 270.476,
    "s": 48.092,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.10879,
    "h": 304.5
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#422261
secondary
#6F954A
accent
#D85093
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #422261

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

Preview Lab → · Contrast checker → · Palette generator →

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