#4A1255#4A1255

#4A1255 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.122 H 320.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#4A1255
RGBrgb(74, 18, 85)
HSLhsl(290, 65%, 20%)
HSVhsv(290, 79%, 33%)
CMYKcmyk(12.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(18.12, 36.19, -27.77)
CIE-LCHlch(18.12, 45.62, 322.51°)
OKLaboklab(31% 0.0943 -0.0778)
OKLCHoklch(31% 0.122 320.5)
XYZxyz(4.6798, 2.5446, 8.8372)
Luminance0.0254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1255 #1D5512
analogous
#281255 #4A1255 #55123F
triadic
#4A1255 #554A12 #12554A
tetradic
#4A1255 #552812 #1D5512 #123F55
square
#4A1255 #552812 #1D5512 #123F55
split-complementary
#4A1255 #3F5512 #125528
monochromatic
#160519 #1E0722 #4A1255 #761D88 #A227BA

Accessibility & contrast

On white

13.92
#4A1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4A1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1255
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1255#FFFFFF#000000##FFFFFF
##4A12551.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#192E53
Tritanopia (blue-blind)
#4A1F32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a1255;
/* rgb */ color: rgb(74, 18, 85);
/* oklch */ color: oklch(31.0% 0.122 320.5);
Tailwind
colors: {
  custom: {
    50: '#7f5685',
    500: '#4a1255',
    950: '#000000',
  },
}
SCSS
$custom: #4a1255;
$custom-light: #7f5685;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1255",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 290.149,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31003,
    "c": 0.12226,
    "h": 320.5
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#4A1255
secondary
#448E35
accent
#E8405B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A1255

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

Preview Lab → · Contrast checker → · Palette generator →

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