#C238B2#C238B2

#C238B2 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.217 H 333.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C238B2
RGBrgb(194, 56, 178)
HSLhsl(307, 55%, 49%)
HSVhsv(307, 71%, 76%)
CMYKcmyk(0%, 71.1%, 8.2%, 23.9%)
CIE-LABlab(48.90, 66.99, -35.76)
CIE-LCHlch(48.90, 75.94, 331.90°)
OKLaboklab(58.81% 0.1933 -0.0981)
OKLCHoklch(58.81% 0.217 333.1)
XYZxyz(31.6984, 17.5147, 43.8220)
Luminance0.1751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C238B2 #38C248
analogous
#8D38C2 #C238B2 #C2386D
triadic
#C238B2 #B2C238 #38B2C2
tetradic
#C238B2 #C28D38 #38C248 #386DC2
square
#C238B2 #C28D38 #38C248 #386DC2
split-complementary
#C238B2 #6DC238 #38C28D
monochromatic
#631D5B #932A86 #C238B2 #D265C6 #E094D7

Accessibility & contrast

On white

4.66
#C238B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#C238B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C238B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C238B2#FFFFFF#000000##FFFFFF
##C238B21.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#CB4571
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c238b2;
/* rgb */ color: rgb(194, 56, 178);
/* oklch */ color: oklch(58.8% 0.217 333.1);
Tailwind
colors: {
  custom: {
    50: '#d87bc9',
    500: '#c238b2',
    950: '#000000',
  },
}
SCSS
$custom: #c238b2;
$custom-light: #d87bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c238b2",
  "rgb": {
    "r": 194,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 306.957,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58807,
    "c": 0.21676,
    "h": 333.1
  },
  "luminance": 0.17512
}

Semantic roles & 50–950 ramp

primary
#C238B2
secondary
#8ACB92
accent
#DF5B49
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C238B2

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

Preview Lab → · Contrast checker → · Palette generator →

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