#2A125C#2A125C

#2A125C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.122 H 290.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2A125C
RGBrgb(42, 18, 92)
HSLhsl(259, 67%, 22%)
HSVhsv(259, 80%, 36%)
CMYKcmyk(54.3%, 80.4%, 0%, 63.9%)
CIE-LABlab(13.81, 31.29, -39.69)
CIE-LCHlch(13.81, 50.54, 308.25°)
OKLaboklab(27.1% 0.0431 -0.114)
OKLCHoklch(27.1% 0.122 290.7)
XYZxyz(3.1024, 1.6974, 10.2873)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A125C #445C12
analogous
#121F5C #2A125C #4F125C
triadic
#2A125C #5C2A12 #125C2A
tetradic
#2A125C #5C121F #445C12 #125C4F
square
#2A125C #5C121F #445C12 #125C4F
split-complementary
#2A125C #5C4F12 #1F5C12
monochromatic
#0C051A #130829 #2A125C #411C8F #5926C2

Accessibility & contrast

On white

15.68
#2A125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A125C
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A125C#FFFFFF#000000##FFFFFF
##2A125C1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#192636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a125c;
/* rgb */ color: rgb(42, 18, 92);
/* oklch */ color: oklch(27.1% 0.122 290.7);
Tailwind
colors: {
  custom: {
    50: '#6a538b',
    500: '#2a125c',
    950: '#000000',
  },
}
SCSS
$custom: #2a125c;
$custom-light: #6a538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a125c",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 259.459,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27103,
    "c": 0.12187,
    "h": 290.7
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#2A125C
secondary
#769435
accent
#EA3EB2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A125C

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

Preview Lab → · Contrast checker → · Palette generator →

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