#9F56F3#9F56F3

#9F56F3 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.6% C 0.225 H 301.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9F56F3
RGBrgb(159, 86, 243)
HSLhsl(268, 87%, 65%)
HSVhsv(268, 65%, 95%)
CMYKcmyk(34.6%, 64.6%, 0%, 4.7%)
CIE-LABlab(52.40, 59.43, -67.63)
CIE-LCHlch(52.40, 90.03, 311.31°)
OKLaboklab(61.55% 0.1174 -0.1923)
OKLCHoklch(61.55% 0.225 301.4)
XYZxyz(33.7997, 20.4974, 86.9523)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56F3 #AAF356
analogous
#565CF3 #9F56F3 #ED56F3
triadic
#9F56F3 #F39F56 #56F39F
tetradic
#9F56F3 #F3565C #AAF356 #56F3ED
square
#9F56F3 #F3565C #AAF356 #56F3ED
split-complementary
#9F56F3 #F3ED56 #5CF356
monochromatic
#610EC1 #7F1DEF #9F56F3 #BF8FF7 #E0C8FB

Accessibility & contrast

On white

4.12
#9F56F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9F56F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56F3
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56F3#FFFFFF#000000##000000
##9F56F31.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF8
Deuteranopia (green-blind)
#0A7CF0
Tritanopia (blue-blind)
#8D799D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f56f3;
/* rgb */ color: rgb(159, 86, 243);
/* oklch */ color: oklch(61.6% 0.225 301.4);
Tailwind
colors: {
  custom: {
    50: '#c18af8',
    500: '#9f56f3',
    950: '#000000',
  },
}
SCSS
$custom: #9f56f3;
$custom-light: #c18af8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56f3",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 243
  },
  "hsl": {
    "h": 267.898,
    "s": 86.74,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61552,
    "c": 0.22528,
    "h": 301.4
  },
  "luminance": 0.20498
}

Semantic roles & 50–950 ramp

primary
#9F56F3
secondary
#D4EDB7
accent
#E3027B
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F56F3

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

Preview Lab → · Contrast checker → · Palette generator →

#9F56F3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva