#4F307D#4F307D

#4F307D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.8% C 0.126 H 299.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4F307D
RGBrgb(79, 48, 125)
HSLhsl(264, 45%, 34%)
HSVhsv(264, 62%, 49%)
CMYKcmyk(36.8%, 61.6%, 0%, 51%)
CIE-LABlab(27.45, 31.66, -38.75)
CIE-LCHlch(27.45, 50.04, 309.25°)
OKLaboklab(38.81% 0.0609 -0.11)
OKLCHoklch(38.81% 0.126 299)
XYZxyz(7.9822, 5.2568, 19.9922)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F307D #5E7D30
analogous
#30387D #4F307D #76307D
triadic
#4F307D #7D4F30 #307D4F
tetradic
#4F307D #7D3038 #5E7D30 #307D76
square
#4F307D #7D3038 #5E7D30 #307D76
split-complementary
#4F307D #7D7630 #387D30
monochromatic
#170E25 #331F51 #4F307D #6B41A9 #8A64C3

Accessibility & contrast

On white

10.24
#4F307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F307D
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F307D#FFFFFF#000000##FFFFFF
##4F307D1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03417F
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#454051
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f307d;
/* rgb */ color: rgb(79, 48, 125);
/* oklch */ color: oklch(38.8% 0.126 299.0);
Tailwind
colors: {
  custom: {
    50: '#846aa3',
    500: '#4f307d',
    950: '#000000',
  },
}
SCSS
$custom: #4f307d;
$custom-light: #846aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f307d",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 264.156,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38808,
    "c": 0.12573,
    "h": 299
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#4F307D
secondary
#8CAB5E
accent
#D454A0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F307D

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

Preview Lab → · Contrast checker → · Palette generator →

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