#C54FBA#C54FBA

#C54FBA is a mid, vivid purple. Relative luminance 0.210; OKLCH L 62.0% C 0.195 H 331.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#C54FBA
RGBrgb(197, 79, 186)
HSLhsl(306, 50%, 54%)
HSVhsv(306, 60%, 77%)
CMYKcmyk(0%, 59.9%, 5.6%, 22.7%)
CIE-LABlab(52.96, 60.06, -34.03)
CIE-LCHlch(52.96, 69.03, 330.47°)
OKLaboklab(61.97% 0.1713 -0.0932)
OKLCHoklch(61.97% 0.195 331.4)
XYZxyz(34.6848, 21.0099, 48.6733)
Luminance0.2101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C54FBA #4FC55A
analogous
#954FC5 #C54FBA #C54F7F
triadic
#C54FBA #BAC54F #4FBAC5
tetradic
#C54FBA #C5954F #4FC55A #4F7FC5
square
#C54FBA #C5954F #4FC55A #4F7FC5
split-complementary
#C54FBA #7FC54F #4FC595
monochromatic
#74266C #A23597 #C54FBA #D47DCC #E3ABDE

Accessibility & contrast

On white

4.04
#C54FBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#C54FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C54FBA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C54FBA#FFFFFF#000000##000000
##C54FBA1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4974BD
Deuteranopia (green-blind)
#6F84B7
Tritanopia (blue-blind)
#CD5A7D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c54fba;
/* rgb */ color: rgb(197, 79, 186);
/* oklch */ color: oklch(62.0% 0.195 331.4);
Tailwind
colors: {
  custom: {
    50: '#d987cf',
    500: '#c54fba',
    950: '#000000',
  },
}
SCSS
$custom: #c54fba;
$custom-light: #d987cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c54fba",
  "rgb": {
    "r": 197,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 305.593,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61969,
    "c": 0.195,
    "h": 331.4
  },
  "luminance": 0.21007
}

Semantic roles & 50–950 ramp

primary
#C54FBA
secondary
#9FD1A3
accent
#DA5B4E
background
#FDF8FC
surface
#FBF0F9
border
#D4CBD2
text
#150C14
muted
#837D82

Preview Lab

Preview with #C54FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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