#4F309E#4F309E

#4F309E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.168 H 290.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4F309E
RGBrgb(79, 48, 158)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 70%, 62%)
CMYKcmyk(50%, 69.6%, 0%, 38%)
CIE-LABlab(30.02, 41.17, -54.99)
CIE-LCHlch(30.02, 68.70, 306.82°)
OKLaboklab(41.47% 0.0575 -0.1577)
OKLCHoklch(41.47% 0.168 290)
XYZxyz(10.4512, 6.2444, 32.9957)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F309E #7F9E30
analogous
#30489E #4F309E #86309E
triadic
#4F309E #9E4F30 #309E4F
tetradic
#4F309E #9E3048 #7F9E30 #309E86
square
#4F309E #9E3048 #7F9E30 #309E86
split-complementary
#4F309E #9E8630 #489E30
monochromatic
#201340 #38226F #4F309E #6945C6 #8F74D5

Accessibility & contrast

On white

9.34
#4F309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F309E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F309E#FFFFFF#000000##FFFFFF
##4F309E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#344C63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f309e;
/* rgb */ color: rgb(79, 48, 158);
/* oklch */ color: oklch(41.5% 0.168 290.0);
Tailwind
colors: {
  custom: {
    50: '#886bbc',
    500: '#4f309e',
    950: '#000000',
  },
}
SCSS
$custom: #4f309e;
$custom-light: #886bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f309e",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 256.909,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41471,
    "c": 0.16786,
    "h": 290
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#4F309E
secondary
#A6BD6D
accent
#DD4BB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F309E

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

Preview Lab → · Contrast checker → · Palette generator →

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