#3A125C#3A125C

#3A125C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.124 H 304.2°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#3A125C
RGBrgb(58, 18, 92)
HSLhsl(272, 67%, 22%)
HSVhsv(272, 80%, 36%)
CMYKcmyk(37%, 80.4%, 0%, 63.9%)
CIE-LABlab(16.03, 34.29, -35.98)
CIE-LCHlch(16.03, 49.70, 313.63°)
OKLaboklab(29.15% 0.0695 -0.1025)
OKLCHoklch(29.15% 0.124 304.2)
XYZxyz(3.8926, 2.1049, 10.3244)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A125C #345C12
analogous
#15125C #3A125C #5C1259
triadic
#3A125C #5C3A12 #125C3A
tetradic
#3A125C #5C1512 #345C12 #12595C
square
#3A125C #5C1512 #345C12 #12595C
split-complementary
#3A125C #595C12 #125C15
monochromatic
#10051A #1A0829 #3A125C #5A1C8F #7B26C2

Accessibility & contrast

On white

14.78
#3A125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A125C
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A125C#FFFFFF#000000##FFFFFF
##3A125C1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#332536
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a125c;
/* rgb */ color: rgb(58, 18, 92);
/* oklch */ color: oklch(29.2% 0.124 304.2);
Tailwind
colors: {
  custom: {
    50: '#74558b',
    500: '#3a125c',
    950: '#000000',
  },
}
SCSS
$custom: #3a125c;
$custom-light: #74558b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a125c",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 272.432,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29154,
    "c": 0.12384,
    "h": 304.2
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#3A125C
secondary
#619435
accent
#EA3E8D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A125C

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

Preview Lab → · Contrast checker → · Palette generator →

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