#C838B7#C838B7

#C838B7 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.0% C 0.224 H 333.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#C838B7
RGBrgb(200, 56, 183)
HSLhsl(307, 57%, 50%)
HSVhsv(307, 72%, 78%)
CMYKcmyk(0%, 72%, 8.5%, 21.6%)
CIE-LABlab(50.13, 69.12, -36.69)
CIE-LCHlch(50.13, 78.25, 332.04°)
OKLaboklab(59.96% 0.1997 -0.1006)
OKLCHoklch(59.96% 0.224 333.3)
XYZxyz(33.7810, 18.5294, 46.5879)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C838B7 #38C849
analogous
#9138C8 #C838B7 #C8386F
triadic
#C838B7 #B7C838 #38B7C8
tetradic
#C838B7 #C89138 #38C849 #386FC8
square
#C838B7 #C89138 #38C849 #386FC8
split-complementary
#C838B7 #6FC838 #38C891
monochromatic
#691D60 #992A8C #C838B7 #D568C8 #E398DA

Accessibility & contrast

On white

4.46
#C838B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#C838B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C838B7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C838B7#FFFFFF#000000##000000
##C838B71.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#336ABB
Deuteranopia (green-blind)
#687FB4
Tritanopia (blue-blind)
#D14674
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c838b7;
/* rgb */ color: rgb(200, 56, 183);
/* oklch */ color: oklch(60.0% 0.224 333.3);
Tailwind
colors: {
  custom: {
    50: '#dd7ccd',
    500: '#c838b7',
    950: '#000000',
  },
}
SCSS
$custom: #c838b7;
$custom-light: #dd7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#c838b7",
  "rgb": {
    "r": 200,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 307.083,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59962,
    "c": 0.2236,
    "h": 333.3
  },
  "luminance": 0.18527
}

Semantic roles & 50–950 ramp

primary
#C838B7
secondary
#8ECE95
accent
#E05A48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #C838B7

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

Preview Lab → · Contrast checker → · Palette generator →

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