#F238DC#F238DC

#F238DC is a light, highly saturated purple. Relative luminance 0.269; OKLCH L 68.1% C 0.270 H 333.6°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#F238DC
RGBrgb(242, 56, 220)
HSLhsl(307, 88%, 58%)
HSVhsv(307, 77%, 95%)
CMYKcmyk(0%, 76.9%, 9.1%, 5.1%)
CIE-LABlab(58.86, 83.49, -43.71)
CIE-LCHlch(58.86, 94.24, 332.37°)
OKLaboklab(68.13% 0.242 -0.12)
OKLCHoklch(68.13% 0.27 333.6)
XYZxyz(50.9508, 26.8774, 70.2007)
Luminance0.2687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F238DC #38F24E
analogous
#AB38F2 #F238DC #F2387F
triadic
#F238DC #DCF238 #38DCF2
tetradic
#F238DC #F2AB38 #38F24E #387FF2
square
#F238DC #F2AB38 #38F24E #387FF2
split-complementary
#F238DC #7FF238 #38F2AB
monochromatic
#A50B93 #DE0FC6 #F238DC #F671E6 #FAABF0

Accessibility & contrast

On white

3.29
#F238DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#F238DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #F238DC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F238DC#FFFFFF#000000##000000
##F238DC1.003.296.376.37
#FFFFFF3.291.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#317DE0
Deuteranopia (green-blind)
#7B97D8
Tritanopia (blue-blind)
#FD4C89
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #f238dc;
/* rgb */ color: rgb(242, 56, 220);
/* oklch */ color: oklch(68.1% 0.270 333.6);
Tailwind
colors: {
  custom: {
    50: '#fb83e7',
    500: '#f238dc',
    950: '#000000',
  },
}
SCSS
$custom: #f238dc;
$custom-light: #fb83e7;
$custom-dark: #000000;
JSON
{
  "hex": "#f238dc",
  "rgb": {
    "r": 242,
    "g": 56,
    "b": 220
  },
  "hsl": {
    "h": 307.097,
    "s": 87.736,
    "l": 58.431
  },
  "oklch": {
    "l": 0.68127,
    "c": 0.27009,
    "h": 333.6
  },
  "luminance": 0.26873
}

Semantic roles & 50–950 ramp

primary
#F238DC
secondary
#9EE8A7
accent
#FE432A
background
#FFF8FE
surface
#FFF0FC
border
#D7CBD5
text
#180C16
muted
#867D84

Preview Lab

Preview with #F238DC

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

Preview Lab → · Contrast checker → · Palette generator →

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