#4A1262#4A1262

#4A1262 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.135 H 313.2°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#4A1262
RGBrgb(74, 18, 98)
HSLhsl(282, 69%, 23%)
HSVhsv(282, 82%, 38%)
CMYKcmyk(24.5%, 81.6%, 0%, 61.6%)
CIE-LABlab(19.10, 39.06, -34.87)
CIE-LCHlch(19.10, 52.36, 318.25°)
OKLaboklab(32.01% 0.0925 -0.0986)
OKLCHoklch(32.01% 0.135 313.2)
XYZxyz(5.2446, 2.7705, 11.8114)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1262 #2A6212
analogous
#221262 #4A1262 #621252
triadic
#4A1262 #624A12 #12624A
tetradic
#4A1262 #622212 #2A6212 #125262
square
#4A1262 #622212 #2A6212 #125262
split-complementary
#4A1262 #526212 #126222
monochromatic
#14051A #23092E #4A1262 #711B96 #9825C9

Accessibility & contrast

On white

13.51
#4A1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4A1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1262
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1262#FFFFFF#000000##FFFFFF
##4A12621.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#083060
Tritanopia (blue-blind)
#47253A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a1262;
/* rgb */ color: rgb(74, 18, 98);
/* oklch */ color: oklch(32.0% 0.135 313.2);
Tailwind
colors: {
  custom: {
    50: '#80578f',
    500: '#4a1262',
    950: '#000000',
  },
}
SCSS
$custom: #4a1262;
$custom-light: #80578f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1262",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 282,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3201,
    "c": 0.13517,
    "h": 313.2
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#4A1262
secondary
#549A36
accent
#EC3C71
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4A1262

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

Preview Lab → · Contrast checker → · Palette generator →

#4A1262 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva