#C54FB8#C54FB8

#C54FB8 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.9% C 0.193 H 332.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#C54FB8
RGBrgb(197, 79, 184)
HSLhsl(307, 50%, 54%)
HSVhsv(307, 60%, 77%)
CMYKcmyk(0%, 59.9%, 6.6%, 22.7%)
CIE-LABlab(52.87, 59.73, -33.01)
CIE-LCHlch(52.87, 68.25, 331.07°)
OKLaboklab(61.87% 0.171 -0.0903)
OKLCHoklch(61.87% 0.193 332.2)
XYZxyz(34.4736, 20.9255, 47.5614)
Luminance0.2092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C54FB8 #4FC55C
analogous
#974FC5 #C54FB8 #C54F7D
triadic
#C54FB8 #B8C54F #4FB8C5
tetradic
#C54FB8 #C5974F #4FC55C #4F7DC5
square
#C54FB8 #C5974F #4FC55C #4F7DC5
split-complementary
#C54FB8 #7DC54F #4FC597
monochromatic
#74266B #A23596 #C54FB8 #D47DCB #E3ABDD

Accessibility & contrast

On white

4.05
#C54FB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#C54FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C54FB8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C54FB8#FFFFFF#000000##000000
##C54FB81.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A73BB
Deuteranopia (green-blind)
#7084B5
Tritanopia (blue-blind)
#CD597C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c54fb8;
/* rgb */ color: rgb(197, 79, 184);
/* oklch */ color: oklch(61.9% 0.193 332.2);
Tailwind
colors: {
  custom: {
    50: '#d987cd',
    500: '#c54fb8',
    950: '#000000',
  },
}
SCSS
$custom: #c54fb8;
$custom-light: #d987cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c54fb8",
  "rgb": {
    "r": 197,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 306.61,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61871,
    "c": 0.1934,
    "h": 332.2
  },
  "luminance": 0.20923
}

Semantic roles & 50–950 ramp

primary
#C54FB8
secondary
#9FD1A4
accent
#DA5D4E
background
#FDF8FC
surface
#FBF0F9
border
#D4CBD2
text
#150C13
muted
#837D82

Preview Lab

Preview with #C54FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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