#C838BA#C838BA

#C838BA is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.1% C 0.226 H 332.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C838BA
RGBrgb(200, 56, 186)
HSLhsl(306, 57%, 50%)
HSVhsv(306, 72%, 78%)
CMYKcmyk(0%, 72%, 7%, 21.6%)
CIE-LABlab(50.28, 69.57, -38.20)
CIE-LCHlch(50.28, 79.37, 331.23°)
OKLaboklab(60.12% 0.1999 -0.105)
OKLCHoklch(60.12% 0.226 332.3)
XYZxyz(34.0966, 18.6557, 48.2500)
Luminance0.1865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C838BA #38C846
analogous
#8E38C8 #C838BA #C83872
triadic
#C838BA #BAC838 #38BAC8
tetradic
#C838BA #C88E38 #38C846 #3872C8
square
#C838BA #C88E38 #38C846 #3872C8
split-complementary
#C838BA #72C838 #38C88E
monochromatic
#691D61 #992A8E #C838BA #D568CB #E398DB

Accessibility & contrast

On white

4.44
#C838BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C838BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C838BA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C838BA#FFFFFF#000000##000000
##C838BA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#306BBE
Deuteranopia (green-blind)
#677FB6
Tritanopia (blue-blind)
#D14875
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c838ba;
/* rgb */ color: rgb(200, 56, 186);
/* oklch */ color: oklch(60.1% 0.226 332.3);
Tailwind
colors: {
  custom: {
    50: '#dd7ccf',
    500: '#c838ba',
    950: '#000000',
  },
}
SCSS
$custom: #c838ba;
$custom-light: #dd7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#c838ba",
  "rgb": {
    "r": 200,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 305.833,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60119,
    "c": 0.22574,
    "h": 332.3
  },
  "luminance": 0.18653
}

Semantic roles & 50–950 ramp

primary
#C838BA
secondary
#8ECE94
accent
#E05748
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #C838BA

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

Preview Lab → · Contrast checker → · Palette generator →

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