#42125D#42125D

#42125D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.127 H 309.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#42125D
RGBrgb(66, 18, 93)
HSLhsl(278, 68%, 22%)
HSVhsv(278, 81%, 36%)
CMYKcmyk(29%, 80.6%, 0%, 63.5%)
CIE-LABlab(17.37, 36.20, -34.41)
CIE-LCHlch(17.37, 49.95, 316.46°)
OKLaboklab(30.39% 0.0817 -0.0975)
OKLCHoklch(30.39% 0.127 309.9)
XYZxyz(4.4385, 2.3813, 10.5796)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42125D #2D5D12
analogous
#1D125D #42125D #5D1253
triadic
#42125D #5D4212 #125D42
tetradic
#42125D #5D1D12 #2D5D12 #12535D
square
#42125D #5D1D12 #2D5D12 #12535D
split-complementary
#42125D #535D12 #125D1D
monochromatic
#12051A #1E082A #42125D #661C90 #8B26C4

Accessibility & contrast

On white

14.23
#42125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#42125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42125D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42125D#FFFFFF#000000##FFFFFF
##42125D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#012B5B
Tritanopia (blue-blind)
#3E2437
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42125d;
/* rgb */ color: rgb(66, 18, 93);
/* oklch */ color: oklch(30.4% 0.127 309.9);
Tailwind
colors: {
  custom: {
    50: '#7a568b',
    500: '#42125d',
    950: '#000000',
  },
}
SCSS
$custom: #42125d;
$custom-light: #7a568b;
$custom-dark: #000000;
JSON
{
  "hex": "#42125d",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 278.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30393,
    "c": 0.12723,
    "h": 309.9
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#42125D
secondary
#589535
accent
#EA3D7C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42125D

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

Preview Lab → · Contrast checker → · Palette generator →

#42125D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva