#CA38CB#CA38CB

#CA38CB is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.239 H 327.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CA38CB
RGBrgb(202, 56, 203)
HSLhsl(300, 59%, 51%)
HSVhsv(300, 72%, 80%)
CMYKcmyk(0.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(51.50, 72.67, -46.09)
CIE-LCHlch(51.50, 86.05, 327.61°)
OKLaboklab(61.34% 0.2023 -0.1278)
OKLCHoklch(61.34% 0.239 327.7)
XYZxyz(36.5503, 19.6993, 58.3656)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38CB #39CB38
analogous
#8038CB #CA38CB #CB3882
triadic
#CA38CB #CBCA38 #38CBCA
tetradic
#CA38CB #CB8038 #39CB38 #3882CB
square
#CA38CB #CB8038 #39CB38 #3882CB
split-complementary
#CA38CB #82CB38 #38CB80
monochromatic
#6C1C6C #9C299D #CA38CB #D769D8 #E499E4

Accessibility & contrast

On white

4.25
#CA38CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CA38CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38CB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38CB#FFFFFF#000000##000000
##CA38CB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#186FCF
Deuteranopia (green-blind)
#5F81C7
Tritanopia (blue-blind)
#D04F7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca38cb;
/* rgb */ color: rgb(202, 56, 203);
/* oklch */ color: oklch(61.3% 0.239 327.7);
Tailwind
colors: {
  custom: {
    50: '#de7ddb',
    500: '#ca38cb',
    950: '#000000',
  },
}
SCSS
$custom: #ca38cb;
$custom-light: #de7ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38cb",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 299.592,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61339,
    "c": 0.23928,
    "h": 327.7
  },
  "luminance": 0.19697
}

Semantic roles & 50–950 ramp

primary
#CA38CB
secondary
#8FD08F
accent
#E24647
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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