#C790F8#C790F8

#C790F8 is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.6% C 0.155 H 307.4°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#C790F8
RGBrgb(199, 144, 248)
HSLhsl(272, 88%, 77%)
HSVhsv(272, 42%, 97%)
CMYKcmyk(19.8%, 41.9%, 0%, 2.7%)
CIE-LABlab(68.65, 39.99, -44.23)
CIE-LCHlch(68.65, 59.63, 312.12°)
OKLaboklab(74.6% 0.0941 -0.123)
OKLCHoklch(74.6% 0.155 307.4)
XYZxyz(50.4664, 38.8664, 93.6321)
Luminance0.3887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C790F8 #C1F890
analogous
#9390F8 #C790F8 #F890F5
triadic
#C790F8 #F8C790 #90F8C7
tetradic
#C790F8 #F89390 #C1F890 #90F5F8
square
#C790F8 #F89390 #C1F890 #90F5F8
split-complementary
#C790F8 #F5F890 #90F893
monochromatic
#8D1DF1 #AA56F4 #C790F8 #E4CAFC #F0E2FD

Accessibility & contrast

On white

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

On black

8.77
#C790F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C790F8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C790F8#FFFFFF#000000##000000
##C790F81.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A5FC
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#C0A0B8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c790f8;
/* rgb */ color: rgb(199, 144, 248);
/* oklch */ color: oklch(74.6% 0.155 307.4);
Tailwind
colors: {
  custom: {
    50: '#dab1fb',
    500: '#c790f8',
    950: '#000000',
  },
}
SCSS
$custom: #c790f8;
$custom-light: #dab1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c790f8",
  "rgb": {
    "r": 199,
    "g": 144,
    "b": 248
  },
  "hsl": {
    "h": 271.731,
    "s": 88.136,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74598,
    "c": 0.15484,
    "h": 307.4
  },
  "luminance": 0.38866
}

Semantic roles & 50–950 ramp

primary
#C790F8
secondary
#E5F5D6
accent
#E5016C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C790F8

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

Preview Lab → · Contrast checker → · Palette generator →

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