#42276A#42276A

#42276A is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.4% C 0.113 H 298.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#42276A
RGBrgb(66, 39, 106)
HSLhsl(264, 46%, 28%)
HSVhsv(264, 63%, 42%)
CMYKcmyk(37.7%, 63.2%, 0%, 58.4%)
CIE-LABlab(22.48, 28.39, -34.71)
CIE-LCHlch(22.48, 44.84, 309.29°)
OKLaboklab(34.38% 0.0545 -0.0985)
OKLCHoklch(34.38% 0.113 298.9)
XYZxyz(5.5732, 3.6498, 14.0437)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42276A #4F6A27
analogous
#272D6A #42276A #63276A
triadic
#42276A #6A4227 #276A42
tetradic
#42276A #6A272D #4F6A27 #276A63
square
#42276A #6A272D #4F6A27 #276A63
split-complementary
#42276A #6A6327 #2D6A27
monochromatic
#0E0816 #26173D #42276A #5E3797 #7B4EBE

Accessibility & contrast

On white

12.14
#42276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#42276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42276A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42276A#FFFFFF#000000##FFFFFF
##42276A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366C
Deuteranopia (green-blind)
#0F3569
Tritanopia (blue-blind)
#393544
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42276a;
/* rgb */ color: rgb(66, 39, 106);
/* oklch */ color: oklch(34.4% 0.113 298.9);
Tailwind
colors: {
  custom: {
    50: '#7a6295',
    500: '#42276a',
    950: '#000000',
  },
}
SCSS
$custom: #42276a;
$custom-light: #7a6295;
$custom-dark: #000000;
JSON
{
  "hex": "#42276a",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 264.179,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34381,
    "c": 0.11259,
    "h": 298.9
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#42276A
secondary
#7E9D50
accent
#D652A1
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #42276A

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

Preview Lab → · Contrast checker → · Palette generator →

#42276A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva