#42246F#42246F

#42246F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.3% C 0.124 H 297.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#42246F
RGBrgb(66, 36, 111)
HSLhsl(264, 51%, 29%)
HSVhsv(264, 68%, 44%)
CMYKcmyk(40.5%, 67.6%, 0%, 56.5%)
CIE-LABlab(22.19, 31.64, -38.41)
CIE-LCHlch(22.19, 49.77, 309.48°)
OKLaboklab(34.29% 0.058 -0.1094)
OKLCHoklch(34.29% 0.124 297.9)
XYZxyz(5.7462, 3.5676, 15.4217)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42246F #516F24
analogous
#242C6F #42246F #68246F
triadic
#42246F #6F4224 #246F42
tetradic
#42246F #6F242C #516F24 #246F68
square
#42246F #6F242C #516F24 #246F68
split-complementary
#42246F #6F6824 #2C6F24
monochromatic
#0E0717 #271541 #42246F #5D339D #7A49C4

Accessibility & contrast

On white

12.25
#42246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#42246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42246F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42246F#FFFFFF#000000##FFFFFF
##42246F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#373546
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #42246f;
/* rgb */ color: rgb(66, 36, 111);
/* oklch */ color: oklch(34.3% 0.124 297.9);
Tailwind
colors: {
  custom: {
    50: '#7a6199',
    500: '#42246f',
    950: '#000000',
  },
}
SCSS
$custom: #42246f;
$custom-light: #7a6199;
$custom-dark: #000000;
JSON
{
  "hex": "#42246f",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 264,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.12384,
    "h": 297.9
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#42246F
secondary
#80A24D
accent
#DA4DA2
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #42246F

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

Preview Lab → · Contrast checker → · Palette generator →

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