#2A125B#2A125B

#2A125B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.121 H 291.1°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2A125B
RGBrgb(42, 18, 91)
HSLhsl(260, 67%, 21%)
HSVhsv(260, 80%, 36%)
CMYKcmyk(53.8%, 80.2%, 0%, 64.3%)
CIE-LABlab(13.71, 30.98, -39.19)
CIE-LCHlch(13.71, 49.95, 308.33°)
OKLaboklab(27% 0.0434 -0.1125)
OKLCHoklch(27% 0.121 291.1)
XYZxyz(3.0589, 1.6801, 10.0586)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A125B #435B12
analogous
#121F5B #2A125B #4F125B
triadic
#2A125B #5B2A12 #125B2A
tetradic
#2A125B #5B121F #435B12 #125B4F
square
#2A125B #5B121F #435B12 #125B4F
split-complementary
#2A125B #5B4F12 #1F5B12
monochromatic
#0C051A #120828 #2A125B #421C8E #5926C1

Accessibility & contrast

On white

15.72
#2A125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A125B
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A125B#FFFFFF#000000##FFFFFF
##2A125B1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#192635
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a125b;
/* rgb */ color: rgb(42, 18, 91);
/* oklch */ color: oklch(27.0% 0.121 291.1);
Tailwind
colors: {
  custom: {
    50: '#6a538a',
    500: '#2a125b',
    950: '#000000',
  },
}
SCSS
$custom: #2a125b;
$custom-light: #6a538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a125b",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 259.726,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27,
    "c": 0.12059,
    "h": 291.1
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#2A125B
secondary
#759335
accent
#EA3EB1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A125B

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

Preview Lab → · Contrast checker → · Palette generator →

#2A125B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva