#3A125B#3A125B

#3A125B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.123 H 304.7°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#3A125B
RGBrgb(58, 18, 91)
HSLhsl(273, 67%, 21%)
HSVhsv(273, 80%, 36%)
CMYKcmyk(36.3%, 80.2%, 0%, 64.3%)
CIE-LABlab(15.94, 34.03, -35.45)
CIE-LCHlch(15.94, 49.14, 313.83°)
OKLaboklab(29.06% 0.0698 -0.1009)
OKLCHoklch(29.06% 0.123 304.7)
XYZxyz(3.8491, 2.0875, 10.0956)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A125B #335B12
analogous
#16125B #3A125B #5B1258
triadic
#3A125B #5B3A12 #125B3A
tetradic
#3A125B #5B1612 #335B12 #12585B
square
#3A125B #5B1612 #335B12 #12585B
split-complementary
#3A125B #585B12 #125B16
monochromatic
#10051A #190828 #3A125B #5B1C8E #7B26C1

Accessibility & contrast

On white

14.82
#3A125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A125B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A125B#FFFFFF#000000##FFFFFF
##3A125B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#342435
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a125b;
/* rgb */ color: rgb(58, 18, 91);
/* oklch */ color: oklch(29.1% 0.123 304.7);
Tailwind
colors: {
  custom: {
    50: '#74548a',
    500: '#3a125b',
    950: '#000000',
  },
}
SCSS
$custom: #3a125b;
$custom-light: #74548a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a125b",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 272.877,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29064,
    "c": 0.12269,
    "h": 304.7
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#3A125B
secondary
#609335
accent
#EA3E8C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A125B

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

Preview Lab → · Contrast checker → · Palette generator →

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