#3A0843#3A0843

#3A0843 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 320.9°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#3A0843
RGBrgb(58, 8, 67)
HSLhsl(291, 79%, 15%)
HSVhsv(291, 88%, 26%)
CMYKcmyk(13.4%, 88.1%, 0%, 73.7%)
CIE-LABlab(12.47, 32.52, -24.59)
CIE-LCHlch(12.47, 40.77, 322.90°)
OKLaboklab(25.99% 0.0848 -0.069)
OKLCHoklch(25.99% 0.109 320.9)
XYZxyz(2.8448, 1.4786, 5.4447)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0843 #114308
analogous
#1C0843 #3A0843 #43082F
triadic
#3A0843 #433A08 #08433A
tetradic
#3A0843 #431C08 #114308 #082F43
square
#3A0843 #431C08 #114308 #082F43
split-complementary
#3A0843 #2F4308 #08431C
monochromatic
#18031B #18031B #3A0843 #690F7A #9915B0

Accessibility & contrast

On white

16.21
#3A0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#3A0843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0843
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0843#FFFFFF#000000##FFFFFF
##3A08431.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D45
Deuteranopia (green-blind)
#0F2242
Tritanopia (blue-blind)
#3A1425
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0843;
/* rgb */ color: rgb(58, 8, 67);
/* oklch */ color: oklch(26.0% 0.109 320.9);
Tailwind
colors: {
  custom: {
    50: '#734f77',
    500: '#3a0843',
    950: '#000000',
  },
}
SCSS
$custom: #3a0843;
$custom-light: #734f77;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0843",
  "rgb": {
    "r": 58,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 290.847,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25989,
    "c": 0.10934,
    "h": 320.9
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#3A0843
secondary
#338125
accent
#F53350
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0843

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

Preview Lab → · Contrast checker → · Palette generator →

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