#AFC242#AFC242

#AFC242 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.5% C 0.152 H 117.3°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#AFC242
RGBrgb(175, 194, 66)
HSLhsl(69, 51%, 51%)
HSVhsv(69, 66%, 76%)
CMYKcmyk(9.8%, 0%, 66%, 23.9%)
CIE-LABlab(74.88, -23.54, 59.66)
CIE-LCHlch(74.88, 64.13, 111.53°)
OKLaboklab(77.54% -0.0697 0.1349)
OKLCHoklch(77.54% 0.152 117.3)
XYZxyz(37.9551, 48.0913, 12.4363)
Luminance0.4809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC242 #5542C2
analogous
#C29542 #AFC242 #6FC242
triadic
#AFC242 #42AFC2 #C242AF
tetradic
#AFC242 #42C295 #5542C2 #C2426F
square
#AFC242 #42C295 #5542C2 #C2426F
split-complementary
#AFC242 #426FC2 #9542C2
monochromatic
#5E6822 #879631 #AFC242 #C3D170 #D6E09F

Accessibility & contrast

On white

1.98
#AFC242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.62
#AFC242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC242
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC242#FFFFFF#000000##000000
##AFC2421.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB830
Deuteranopia (green-blind)
#CDB94B
Tritanopia (blue-blind)
#B9B8A8
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc242;
/* rgb */ color: rgb(175, 194, 66);
/* oklch */ color: oklch(77.5% 0.152 117.3);
Tailwind
colors: {
  custom: {
    50: '#cad47d',
    500: '#afc242',
    950: '#000000',
  },
}
SCSS
$custom: #afc242;
$custom-light: #cad47d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc242",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 68.906,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.77538,
    "c": 0.15179,
    "h": 117.3
  },
  "luminance": 0.48091
}

Semantic roles & 50–950 ramp

primary
#AFC242
secondary
#9C94CC
accent
#4DDB62
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC242

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

Preview Lab → · Contrast checker → · Palette generator →

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