#42276F#42276F

#42276F is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.8% C 0.119 H 297.0°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#42276F
RGBrgb(66, 39, 111)
HSLhsl(263, 48%, 29%)
HSVhsv(263, 65%, 44%)
CMYKcmyk(40.5%, 64.9%, 0%, 56.5%)
CIE-LABlab(22.85, 29.85, -37.34)
CIE-LCHlch(22.85, 47.80, 308.64°)
OKLaboklab(34.77% 0.0542 -0.1063)
OKLCHoklch(34.77% 0.119 297)
XYZxyz(5.8408, 3.7569, 15.4533)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42276F #546F27
analogous
#27306F #42276F #66276F
triadic
#42276F #6F4227 #276F42
tetradic
#42276F #6F2730 #546F27 #276F66
square
#42276F #6F2730 #546F27 #276F66
split-complementary
#42276F #6F6627 #306F27
monochromatic
#0D0817 #271742 #42276F #5D379C #7A4FC1

Accessibility & contrast

On white

11.99
#42276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#42276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42276F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42276F#FFFFFF#000000##FFFFFF
##42276F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#04366D
Tritanopia (blue-blind)
#373747
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #42276f;
/* rgb */ color: rgb(66, 39, 111);
/* oklch */ color: oklch(34.8% 0.119 297.0);
Tailwind
colors: {
  custom: {
    50: '#7a6299',
    500: '#42276f',
    950: '#000000',
  },
}
SCSS
$custom: #42276f;
$custom-light: #7a6299;
$custom-dark: #000000;
JSON
{
  "hex": "#42276f",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 262.5,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.1193,
    "h": 297
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#42276F
secondary
#83A250
accent
#D850A5
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #42276F

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

Preview Lab → · Contrast checker → · Palette generator →

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