#4F307A#4F307A

#4F307A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.122 H 300.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4F307A
RGBrgb(79, 48, 122)
HSLhsl(265, 44%, 33%)
HSVhsv(265, 61%, 48%)
CMYKcmyk(35.2%, 60.7%, 0%, 52.2%)
CIE-LABlab(27.25, 30.82, -37.20)
CIE-LCHlch(27.25, 48.31, 309.64°)
OKLaboklab(38.59% 0.061 -0.1054)
OKLCHoklch(38.59% 0.122 300)
XYZxyz(7.7934, 5.1813, 18.9981)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F307A #5B7A30
analogous
#30367A #4F307A #74307A
triadic
#4F307A #7A4F30 #307A4F
tetradic
#4F307A #7A3036 #5B7A30 #307A74
square
#4F307A #7A3036 #5B7A30 #307A74
split-complementary
#4F307A #7A7430 #367A30
monochromatic
#160D22 #331F4E #4F307A #6B41A6 #8B63C2

Accessibility & contrast

On white

10.31
#4F307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F307A
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F307A#FFFFFF#000000##FFFFFF
##4F307A1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A407C
Deuteranopia (green-blind)
#194078
Tritanopia (blue-blind)
#463F50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f307a;
/* rgb */ color: rgb(79, 48, 122);
/* oklch */ color: oklch(38.6% 0.122 300.0);
Tailwind
colors: {
  custom: {
    50: '#836aa1',
    500: '#4f307a',
    950: '#000000',
  },
}
SCSS
$custom: #4f307a;
$custom-light: #836aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f307a",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 265.135,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38588,
    "c": 0.12178,
    "h": 300
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#4F307A
secondary
#89A95D
accent
#D3559E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4F307A

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

Preview Lab → · Contrast checker → · Palette generator →

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