#42125F#42125F

#42125F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.129 H 308.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#42125F
RGBrgb(66, 18, 95)
HSLhsl(277, 68%, 22%)
HSVhsv(277, 81%, 37%)
CMYKcmyk(30.5%, 81.1%, 0%, 62.7%)
CIE-LABlab(17.54, 36.69, -35.47)
CIE-LCHlch(17.54, 51.03, 315.97°)
OKLaboklab(30.56% 0.0813 -0.1007)
OKLCHoklch(30.56% 0.129 308.9)
XYZxyz(4.5282, 2.4172, 11.0523)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42125F #2F5F12
analogous
#1C125F #42125F #5F1256
triadic
#42125F #5F4212 #125F42
tetradic
#42125F #5F1C12 #2F5F12 #12565F
square
#42125F #5F1C12 #2F5F12 #12565F
split-complementary
#42125F #565F12 #125F1C
monochromatic
#12051A #1E082C #42125F #661C92 #8925C6

Accessibility & contrast

On white

14.16
#42125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42125F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42125F#FFFFFF#000000##FFFFFF
##42125F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#3E2538
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #42125f;
/* rgb */ color: rgb(66, 18, 95);
/* oklch */ color: oklch(30.6% 0.129 308.9);
Tailwind
colors: {
  custom: {
    50: '#7a568d',
    500: '#42125f',
    950: '#000000',
  },
}
SCSS
$custom: #42125f;
$custom-light: #7a568d;
$custom-dark: #000000;
JSON
{
  "hex": "#42125f",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 277.403,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30564,
    "c": 0.12937,
    "h": 308.9
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#42125F
secondary
#5A9736
accent
#EB3D7E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #42125F

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

Preview Lab → · Contrast checker → · Palette generator →

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