#4F1274#4F1274

#4F1274 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.155 H 308.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#4F1274
RGBrgb(79, 18, 116)
HSLhsl(277, 73%, 26%)
HSVhsv(277, 84%, 45%)
CMYKcmyk(31.9%, 84.5%, 0%, 54.5%)
CIE-LABlab(21.42, 44.16, -42.80)
CIE-LCHlch(21.42, 61.50, 315.89°)
OKLaboklab(34.27% 0.0954 -0.1217)
OKLCHoklch(34.27% 0.155 308.1)
XYZxyz(6.5925, 3.3559, 16.8201)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1274 #377412
analogous
#1E1274 #4F1274 #741268
triadic
#4F1274 #744F12 #12744F
tetradic
#4F1274 #741E12 #377412 #126874
square
#4F1274 #741E12 #377412 #126874
split-complementary
#4F1274 #687412 #12741E
monochromatic
#12041A #2B0A3F #4F1274 #731AA9 #9723DD

Accessibility & contrast

On white

12.57
#4F1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1274
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1274#FFFFFF#000000##FFFFFF
##4F12741.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#492C44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1274;
/* rgb */ color: rgb(79, 18, 116);
/* oklch */ color: oklch(34.3% 0.155 308.1);
Tailwind
colors: {
  custom: {
    50: '#85599d',
    500: '#4f1274',
    950: '#000000',
  },
}
SCSS
$custom: #4f1274;
$custom-light: #85599d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1274",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 277.347,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.15468,
    "h": 308.1
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#4F1274
secondary
#63AB37
accent
#F0387D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1274

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

Preview Lab → · Contrast checker → · Palette generator →

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