#3A0742#3A0742

#3A0742 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.8% C 0.110 H 321.7°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#3A0742
RGBrgb(58, 7, 66)
HSLhsl(292, 81%, 14%)
HSVhsv(292, 89%, 26%)
CMYKcmyk(12.1%, 89.4%, 0%, 74.1%)
CIE-LABlab(12.25, 32.71, -24.24)
CIE-LCHlch(12.25, 40.72, 323.46°)
OKLaboklab(25.81% 0.0861 -0.0679)
OKLCHoklch(25.81% 0.11 321.7)
XYZxyz(2.8042, 1.4450, 5.2844)
Luminance0.0144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0742 #0F4207
analogous
#1D0742 #3A0742 #42072D
triadic
#3A0742 #423A07 #07423A
tetradic
#3A0742 #421D07 #0F4207 #072D42
square
#3A0742 #421D07 #0F4207 #072D42
split-complementary
#3A0742 #2D4207 #07421D
monochromatic
#18031C #18031C #3A0742 #6B0D79 #9B13B1

Accessibility & contrast

On white

16.29
#3A0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3A0742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0742
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0742#FFFFFF#000000##FFFFFF
##3A07421.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#0F2241
Tritanopia (blue-blind)
#3B1325
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0742;
/* rgb */ color: rgb(58, 7, 66);
/* oklch */ color: oklch(25.8% 0.110 321.7);
Tailwind
colors: {
  custom: {
    50: '#734e77',
    500: '#3a0742',
    950: '#000000',
  },
}
SCSS
$custom: #3a0742;
$custom-light: #734e77;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0742",
  "rgb": {
    "r": 58,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 291.864,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25811,
    "c": 0.10964,
    "h": 321.7
  },
  "luminance": 0.01445
}

Semantic roles & 50–950 ramp

primary
#3A0742
secondary
#308124
accent
#F7314C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0742

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

Preview Lab → · Contrast checker → · Palette generator →

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