#4F309F#4F309F

#4F309F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.169 H 289.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4F309F
RGBrgb(79, 48, 159)
HSLhsl(257, 54%, 41%)
HSVhsv(257, 70%, 62%)
CMYKcmyk(50.3%, 69.8%, 0%, 37.6%)
CIE-LABlab(30.11, 41.47, -55.46)
CIE-LCHlch(30.11, 69.25, 306.79°)
OKLaboklab(41.56% 0.0573 -0.1591)
OKLCHoklch(41.56% 0.169 289.8)
XYZxyz(10.5376, 6.2789, 33.4509)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F309F #809F30
analogous
#30489F #4F309F #86309F
triadic
#4F309F #9F4F30 #309F4F
tetradic
#4F309F #9F3048 #809F30 #309F86
square
#4F309F #9F3048 #809F30 #309F86
split-complementary
#4F309F #9F8630 #489F30
monochromatic
#201441 #382270 #4F309F #6945C7 #8F74D5

Accessibility & contrast

On white

9.31
#4F309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F309F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F309F#FFFFFF#000000##FFFFFF
##4F309F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#344C64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f309f;
/* rgb */ color: rgb(79, 48, 159);
/* oklch */ color: oklch(41.6% 0.169 289.8);
Tailwind
colors: {
  custom: {
    50: '#886bbc',
    500: '#4f309f',
    950: '#000000',
  },
}
SCSS
$custom: #4f309f;
$custom-light: #886bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f309f",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 256.757,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41558,
    "c": 0.1691,
    "h": 289.8
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F309F

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

Preview Lab → · Contrast checker → · Palette generator →

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