#C02FAF#C02FAF

#C02FAF is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.223 H 333.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#C02FAF
RGBrgb(192, 47, 175)
HSLhsl(307, 61%, 47%)
HSVhsv(307, 76%, 75%)
CMYKcmyk(0%, 75.5%, 8.9%, 24.7%)
CIE-LABlab(47.41, 68.95, -36.37)
CIE-LCHlch(47.41, 77.95, 332.19°)
OKLaboklab(57.63% 0.1995 -0.0998)
OKLCHoklch(57.63% 0.223 333.4)
XYZxyz(30.4928, 16.3373, 42.0966)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C02FAF #2FC040
analogous
#882FC0 #C02FAF #C02F67
triadic
#C02FAF #AFC02F #2FAFC0
tetradic
#C02FAF #C0882F #2FC040 #2F67C0
square
#C02FAF #C0882F #2FC040 #2F67C0
split-complementary
#C02FAF #67C02F #2FC088
monochromatic
#5E1755 #8F2382 #C02FAF #D656C7 #E288D7

Accessibility & contrast

On white

4.92
#C02FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#C02FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C02FAF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C02FAF#FFFFFF#000000##FFFFFF
##C02FAF1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B2
Deuteranopia (green-blind)
#6178AC
Tritanopia (blue-blind)
#C93E6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c02faf;
/* rgb */ color: rgb(192, 47, 175);
/* oklch */ color: oklch(57.6% 0.223 333.4);
Tailwind
colors: {
  custom: {
    50: '#d777c7',
    500: '#c02faf',
    950: '#000000',
  },
}
SCSS
$custom: #c02faf;
$custom-light: #d777c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c02faf",
  "rgb": {
    "r": 192,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 307.034,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57625,
    "c": 0.22308,
    "h": 333.4
  },
  "luminance": 0.16335
}

Semantic roles & 50–950 ramp

primary
#C02FAF
secondary
#7FCB88
accent
#E45744
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C02FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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