#C790FA#C790FA

#C790FA is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.7% C 0.157 H 306.9°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#C790FA
RGBrgb(199, 144, 250)
HSLhsl(271, 91%, 77%)
HSVhsv(271, 42%, 98%)
CMYKcmyk(20.4%, 42.4%, 0%, 2%)
CIE-LABlab(68.74, 40.43, -45.18)
CIE-LCHlch(68.74, 60.63, 311.82°)
OKLaboklab(74.7% 0.0944 -0.1257)
OKLCHoklch(74.7% 0.157 306.9)
XYZxyz(50.7783, 38.9912, 95.2749)
Luminance0.3899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C790FA #C3FA90
analogous
#9290FA #C790FA #FA90F8
triadic
#C790FA #FAC790 #90FAC7
tetradic
#C790FA #FA9290 #C3FA90 #90F8FA
square
#C790FA #FA9290 #C3FA90 #90F8FA
split-complementary
#C790FA #F8FA90 #90FA92
monochromatic
#8C1BF5 #A955F7 #C790FA #E5CBFD #F0E2FE

Accessibility & contrast

On white

2.39
#C790FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#C790FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C790FA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C790FA#FFFFFF#000000##000000
##C790FA1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A6FE
Deuteranopia (green-blind)
#84A8F7
Tritanopia (blue-blind)
#C0A1B9
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c790fa;
/* rgb */ color: rgb(199, 144, 250);
/* oklch */ color: oklch(74.7% 0.157 306.9);
Tailwind
colors: {
  custom: {
    50: '#dab1fc',
    500: '#c790fa',
    950: '#000000',
  },
}
SCSS
$custom: #c790fa;
$custom-light: #dab1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#c790fa",
  "rgb": {
    "r": 199,
    "g": 144,
    "b": 250
  },
  "hsl": {
    "h": 271.132,
    "s": 91.379,
    "l": 77.255
  },
  "oklch": {
    "l": 0.74696,
    "c": 0.15723,
    "h": 306.9
  },
  "luminance": 0.38991
}

Semantic roles & 50–950 ramp

primary
#C790FA
secondary
#E5F6D5
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C790FA

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

Preview Lab → · Contrast checker → · Palette generator →

#C790FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva