#C54FB2#C54FB2

#C54FB2 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.6% C 0.189 H 334.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C54FB2
RGBrgb(197, 79, 178)
HSLhsl(310, 50%, 54%)
HSVhsv(310, 60%, 77%)
CMYKcmyk(0%, 59.9%, 9.6%, 22.7%)
CIE-LABlab(52.60, 58.77, -29.95)
CIE-LCHlch(52.60, 65.96, 332.99°)
OKLaboklab(61.58% 0.1702 -0.0815)
OKLCHoklch(61.58% 0.189 334.4)
XYZxyz(33.8580, 20.6792, 44.3191)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C54FB2 #4FC562
analogous
#9D4FC5 #C54FB2 #C54F77
triadic
#C54FB2 #B2C54F #4FB2C5
tetradic
#C54FB2 #C59D4F #4FC562 #4F77C5
square
#C54FB2 #C59D4F #4FC562 #4F77C5
split-complementary
#C54FB2 #77C54F #4FC59D
monochromatic
#742667 #A23590 #C54FB2 #D47DC6 #E3ABDA

Accessibility & contrast

On white

4.09
#C54FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#C54FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C54FB2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C54FB2#FFFFFF#000000##000000
##C54FB21.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E72B5
Deuteranopia (green-blind)
#7384AF
Tritanopia (blue-blind)
#CE5779
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c54fb2;
/* rgb */ color: rgb(197, 79, 178);
/* oklch */ color: oklch(61.6% 0.189 334.4);
Tailwind
colors: {
  custom: {
    50: '#d987c9',
    500: '#c54fb2',
    950: '#000000',
  },
}
SCSS
$custom: #c54fb2;
$custom-light: #d987c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c54fb2",
  "rgb": {
    "r": 197,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 309.661,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61584,
    "c": 0.18871,
    "h": 334.4
  },
  "luminance": 0.20677
}

Semantic roles & 50–950 ramp

primary
#C54FB2
secondary
#9FD1A7
accent
#DA644E
background
#FDF8FC
surface
#FBF0F8
border
#D4CBD1
text
#150C13
muted
#837D82

Preview Lab

Preview with #C54FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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