#4A1275#4A1275

#4A1275 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.154 H 304.5°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4A1275
RGBrgb(74, 18, 117)
HSLhsl(274, 73%, 26%)
HSVhsv(274, 85%, 46%)
CMYKcmyk(36.8%, 84.6%, 0%, 54.1%)
CIE-LABlab(20.72, 43.53, -44.61)
CIE-LCHlch(20.72, 62.33, 314.30°)
OKLaboklab(33.65% 0.0875 -0.1272)
OKLCHoklch(33.65% 0.154 304.5)
XYZxyz(6.2505, 3.1728, 17.1093)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1275 #3D7512
analogous
#181275 #4A1275 #75126F
triadic
#4A1275 #754A12 #12754A
tetradic
#4A1275 #751812 #3D7512 #126F75
square
#4A1275 #751812 #3D7512 #126F75
split-complementary
#4A1275 #6F7512 #127518
monochromatic
#11041B #280A40 #4A1275 #6C1AAA #8D24DD

Accessibility & contrast

On white

12.85
#4A1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4A1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1275
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1275#FFFFFF#000000##FFFFFF
##4A12751.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#422D44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a1275;
/* rgb */ color: rgb(74, 18, 117);
/* oklch */ color: oklch(33.7% 0.154 304.5);
Tailwind
colors: {
  custom: {
    50: '#82589e',
    500: '#4a1275',
    950: '#000000',
  },
}
SCSS
$custom: #4a1275;
$custom-light: #82589e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1275",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 273.939,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33652,
    "c": 0.15443,
    "h": 304.5
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#4A1275
secondary
#6AAC37
accent
#F03888
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1275

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

Preview Lab → · Contrast checker → · Palette generator →

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