#4F307C#4F307C

#4F307C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.124 H 299.3°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4F307C
RGBrgb(79, 48, 124)
HSLhsl(264, 44%, 34%)
HSVhsv(264, 61%, 49%)
CMYKcmyk(36.3%, 61.3%, 0%, 51.4%)
CIE-LABlab(27.38, 31.38, -38.24)
CIE-LCHlch(27.38, 49.46, 309.37°)
OKLaboklab(38.73% 0.061 -0.1085)
OKLCHoklch(38.73% 0.124 299.3)
XYZxyz(7.9186, 5.2313, 19.6574)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F307C #5D7C30
analogous
#30377C #4F307C #75307C
triadic
#4F307C #7C4F30 #307C4F
tetradic
#4F307C #7C3037 #5D7C30 #307C75
square
#4F307C #7C3037 #5D7C30 #307C75
split-complementary
#4F307C #7C7530 #377C30
monochromatic
#170E24 #331F50 #4F307C #6B41A8 #8A64C3

Accessibility & contrast

On white

10.26
#4F307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F307C
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F307C#FFFFFF#000000##FFFFFF
##4F307C1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417E
Deuteranopia (green-blind)
#16407A
Tritanopia (blue-blind)
#454051
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f307c;
/* rgb */ color: rgb(79, 48, 124);
/* oklch */ color: oklch(38.7% 0.124 299.3);
Tailwind
colors: {
  custom: {
    50: '#846aa2',
    500: '#4f307c',
    950: '#000000',
  },
}
SCSS
$custom: #4f307c;
$custom-light: #846aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f307c",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 264.474,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38734,
    "c": 0.12442,
    "h": 299.3
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F307C

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

Preview Lab → · Contrast checker → · Palette generator →

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