#42125B#42125B

#42125B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.125 H 311.0°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#42125B
RGBrgb(66, 18, 91)
HSLhsl(279, 67%, 21%)
HSVhsv(279, 80%, 36%)
CMYKcmyk(27.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(17.21, 35.72, -33.34)
CIE-LCHlch(17.21, 48.86, 316.98°)
OKLaboklab(30.23% 0.0821 -0.0944)
OKLCHoklch(30.23% 0.125 311)
XYZxyz(4.3510, 2.3463, 10.1192)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42125B #2B5B12
analogous
#1E125B #42125B #5B1250
triadic
#42125B #5B4212 #125B42
tetradic
#42125B #5B1E12 #2B5B12 #12505B
square
#42125B #5B1E12 #2B5B12 #12505B
split-complementary
#42125B #505B12 #125B1E
monochromatic
#13051A #1D0828 #42125B #671C8E #8C26C1

Accessibility & contrast

On white

14.29
#42125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#42125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42125B
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42125B#FFFFFF#000000##FFFFFF
##42125B1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#052B59
Tritanopia (blue-blind)
#3F2335
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42125b;
/* rgb */ color: rgb(66, 18, 91);
/* oklch */ color: oklch(30.2% 0.125 311.0);
Tailwind
colors: {
  custom: {
    50: '#7a568a',
    500: '#42125b',
    950: '#000000',
  },
}
SCSS
$custom: #42125b;
$custom-light: #7a568a;
$custom-dark: #000000;
JSON
{
  "hex": "#42125b",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 279.452,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30226,
    "c": 0.1251,
    "h": 311
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#42125B
secondary
#569335
accent
#EA3E79
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #42125B

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

Preview Lab → · Contrast checker → · Palette generator →

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