#4F1275#4F1275

#4F1275 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.156 H 307.7°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4F1275
RGBrgb(79, 18, 117)
HSLhsl(277, 73%, 26%)
HSVhsv(277, 85%, 46%)
CMYKcmyk(32.5%, 84.6%, 0%, 54.1%)
CIE-LABlab(21.50, 44.39, -43.30)
CIE-LCHlch(21.50, 62.01, 315.71°)
OKLaboklab(34.36% 0.0952 -0.1232)
OKLCHoklch(34.36% 0.156 307.7)
XYZxyz(6.6510, 3.3793, 17.1281)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1275 #387512
analogous
#1E1275 #4F1275 #75126A
triadic
#4F1275 #754F12 #12754F
tetradic
#4F1275 #751E12 #387512 #126A75
square
#4F1275 #751E12 #387512 #126A75
split-complementary
#4F1275 #6A7512 #12751E
monochromatic
#12041B #2B0A40 #4F1275 #731AAA #9624DD

Accessibility & contrast

On white

12.53
#4F1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4F1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1275
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1275#FFFFFF#000000##FFFFFF
##4F12751.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#492D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1275;
/* rgb */ color: rgb(79, 18, 117);
/* oklch */ color: oklch(34.4% 0.156 307.7);
Tailwind
colors: {
  custom: {
    50: '#85599e',
    500: '#4f1275',
    950: '#000000',
  },
}
SCSS
$custom: #4f1275;
$custom-light: #85599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1275",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 276.97,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34357,
    "c": 0.15566,
    "h": 307.7
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#4F1275
secondary
#64AC37
accent
#F0387F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1275

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

Preview Lab → · Contrast checker → · Palette generator →

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