#42266F#42266F

#42266F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.6% C 0.121 H 297.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#42266F
RGBrgb(66, 38, 111)
HSLhsl(263, 49%, 29%)
HSVhsv(263, 66%, 44%)
CMYKcmyk(40.5%, 65.8%, 0%, 56.5%)
CIE-LABlab(22.63, 30.45, -37.70)
CIE-LCHlch(22.63, 48.46, 308.93°)
OKLaboklab(34.61% 0.0555 -0.1073)
OKLCHoklch(34.61% 0.121 297.3)
XYZxyz(5.8084, 3.6921, 15.4425)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42266F #536F26
analogous
#262F6F #42266F #67266F
triadic
#42266F #6F4226 #266F42
tetradic
#42266F #6F262F #536F26 #266F67
square
#42266F #6F262F #536F26 #266F67
split-complementary
#42266F #6F6726 #2F6F26
monochromatic
#0E0817 #271641 #42266F #5D369D #7A4DC2

Accessibility & contrast

On white

12.08
#42266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#42266F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42266F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42266F#FFFFFF#000000##FFFFFF
##42266F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#373646
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #42266f;
/* rgb */ color: rgb(66, 38, 111);
/* oklch */ color: oklch(34.6% 0.121 297.3);
Tailwind
colors: {
  custom: {
    50: '#7a6299',
    500: '#42266f',
    950: '#000000',
  },
}
SCSS
$custom: #42266f;
$custom-light: #7a6299;
$custom-dark: #000000;
JSON
{
  "hex": "#42266f",
  "rgb": {
    "r": 66,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 263.014,
    "s": 48.993,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34608,
    "c": 0.12083,
    "h": 297.3
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#42266F
secondary
#82A24F
accent
#D94FA4
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #42266F

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

Preview Lab → · Contrast checker → · Palette generator →

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