#42105F#42105F

#42105F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.132 H 309.2°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#42105F
RGBrgb(66, 16, 95)
HSLhsl(278, 71%, 22%)
HSVhsv(278, 83%, 37%)
CMYKcmyk(30.5%, 83.2%, 0%, 62.7%)
CIE-LABlab(17.25, 37.52, -35.94)
CIE-LCHlch(17.25, 51.96, 316.24°)
OKLaboklab(30.36% 0.0832 -0.102)
OKLCHoklch(30.36% 0.132 309.2)
XYZxyz(4.4972, 2.3551, 11.0419)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42105F #2D5F10
analogous
#1B105F #42105F #5F1055
triadic
#42105F #5F4210 #105F42
tetradic
#42105F #5F1B10 #2D5F10 #10555F
square
#42105F #5F1B10 #2D5F10 #10555F
split-complementary
#42105F #555F10 #105F1B
monochromatic
#12041A #1E072B #42105F #661993 #8B22C8

Accessibility & contrast

On white

14.28
#42105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#42105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42105F
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42105F#FFFFFF#000000##FFFFFF
##42105F1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#3E2437
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42105f;
/* rgb */ color: rgb(66, 16, 95);
/* oklch */ color: oklch(30.4% 0.132 309.2);
Tailwind
colors: {
  custom: {
    50: '#7a558d',
    500: '#42105f',
    950: '#000000',
  },
}
SCSS
$custom: #42105f;
$custom-light: #7a558d;
$custom-dark: #000000;
JSON
{
  "hex": "#42105f",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 277.975,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3036,
    "c": 0.13165,
    "h": 309.2
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#42105F
secondary
#589833
accent
#EE3A7C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #42105F

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

Preview Lab → · Contrast checker → · Palette generator →

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