#C838B2#C838B2

#C838B2 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.7% C 0.220 H 334.9°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C838B2
RGBrgb(200, 56, 178)
HSLhsl(309, 57%, 50%)
HSVhsv(309, 72%, 78%)
CMYKcmyk(0%, 72%, 11%, 21.6%)
CIE-LABlab(49.89, 68.38, -34.15)
CIE-LCHlch(49.89, 76.43, 333.46°)
OKLaboklab(59.71% 0.1993 -0.0933)
OKLCHoklch(59.71% 0.22 334.9)
XYZxyz(33.2699, 18.3250, 43.8957)
Luminance0.1832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C838B2 #38C84E
analogous
#9638C8 #C838B2 #C8386A
triadic
#C838B2 #B2C838 #38B2C8
tetradic
#C838B2 #C89638 #38C84E #386AC8
square
#C838B2 #C89638 #38C84E #386AC8
split-complementary
#C838B2 #6AC838 #38C896
monochromatic
#691D5D #992A88 #C838B2 #D568C5 #E398D7

Accessibility & contrast

On white

4.50
#C838B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#C838B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C838B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C838B2#FFFFFF#000000##000000
##C838B21.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#6A7EAF
Tritanopia (blue-blind)
#D24471
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c838b2;
/* rgb */ color: rgb(200, 56, 178);
/* oklch */ color: oklch(59.7% 0.220 334.9);
Tailwind
colors: {
  custom: {
    50: '#dd7cc9',
    500: '#c838b2',
    950: '#000000',
  },
}
SCSS
$custom: #c838b2;
$custom-light: #dd7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c838b2",
  "rgb": {
    "r": 200,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 309.167,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59707,
    "c": 0.22007,
    "h": 334.9
  },
  "luminance": 0.18322
}

Semantic roles & 50–950 ramp

primary
#C838B2
secondary
#8ECE98
accent
#E05F48
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #C838B2

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

Preview Lab → · Contrast checker → · Palette generator →

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