#C238E7#C238E7

#C238E7 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.9% C 0.258 H 317.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#C238E7
RGBrgb(194, 56, 231)
HSLhsl(287, 78%, 56%)
HSVhsv(287, 76%, 91%)
CMYKcmyk(16%, 75.8%, 0%, 9.4%)
CIE-LABlab(51.91, 75.88, -61.44)
CIE-LCHlch(51.91, 97.63, 321.00°)
OKLaboklab(61.93% 0.1915 -0.1728)
OKLCHoklch(61.93% 0.258 317.9)
XYZxyz(38.0841, 20.0689, 77.4534)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C238E7 #5DE738
analogous
#6B38E7 #C238E7 #E738B5
triadic
#C238E7 #E7C238 #38E7C2
tetradic
#C238E7 #E76B38 #5DE738 #38B5E7
square
#C238E7 #E76B38 #5DE738 #38B5E7
split-complementary
#C238E7 #B5E738 #38E76B
monochromatic
#781293 #A418CA #C238E7 #D36FEE #E3A5F4

Accessibility & contrast

On white

4.19
#C238E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#C238E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C238E7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C238E7#FFFFFF#000000##000000
##C238E71.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#3F80E3
Tritanopia (blue-blind)
#C15E8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c238e7;
/* rgb */ color: rgb(194, 56, 231);
/* oklch */ color: oklch(61.9% 0.258 317.9);
Tailwind
colors: {
  custom: {
    50: '#d97def',
    500: '#c238e7',
    950: '#000000',
  },
}
SCSS
$custom: #c238e7;
$custom-light: #d97def;
$custom-dark: #000000;
JSON
{
  "hex": "#c238e7",
  "rgb": {
    "r": 194,
    "g": 56,
    "b": 231
  },
  "hsl": {
    "h": 287.314,
    "s": 78.475,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61925,
    "c": 0.25798,
    "h": 317.9
  },
  "luminance": 0.20067
}

Semantic roles & 50–950 ramp

primary
#C238E7
secondary
#A9E199
accent
#F5335C
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #C238E7

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

Preview Lab → · Contrast checker → · Palette generator →

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