#3A1272#3A1272

#3A1272 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.149 H 295.0°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#3A1272
RGBrgb(58, 18, 114)
HSLhsl(265, 73%, 26%)
HSVhsv(265, 84%, 45%)
CMYKcmyk(49.1%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.13, 40.21, -47.01)
CIE-LCHlch(18.13, 61.86, 310.54°)
OKLaboklab(31.27% 0.0628 -0.1349)
OKLCHoklch(31.27% 0.149 295)
XYZxyz(4.9977, 2.5469, 16.1446)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1272 #4A7212
analogous
#121A72 #3A1272 #6A1272
triadic
#3A1272 #723A12 #12723A
tetradic
#3A1272 #72121A #4A7212 #12726A
square
#3A1272 #72121A #4A7212 #12726A
split-complementary
#3A1272 #726A12 #1A7212
monochromatic
#0D041A #1F0A3D #3A1272 #551AA7 #7023DC

Accessibility & contrast

On white

13.91
#3A1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1272
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1272#FFFFFF#000000##FFFFFF
##3A12721.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#292E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1272;
/* rgb */ color: rgb(58, 18, 114);
/* oklch */ color: oklch(31.3% 0.149 295.0);
Tailwind
colors: {
  custom: {
    50: '#77569b',
    500: '#3a1272',
    950: '#000000',
  },
}
SCSS
$custom: #3a1272;
$custom-light: #77569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1272",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 265,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31267,
    "c": 0.14874,
    "h": 295
  },
  "luminance": 0.02547
}

Semantic roles & 50–950 ramp

primary
#3A1272
secondary
#79A937
accent
#EF38A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1272

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

Preview Lab → · Contrast checker → · Palette generator →

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