#AFC042#AFC042

#AFC042 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.1% C 0.149 H 116.6°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#AFC042
RGBrgb(175, 192, 66)
HSLhsl(68, 50%, 51%)
HSVhsv(68, 66%, 75%)
CMYKcmyk(8.9%, 0%, 65.6%, 24.7%)
CIE-LABlab(74.32, -22.56, 59.07)
CIE-LCHlch(74.32, 63.23, 110.90°)
OKLaboklab(77.09% -0.0669 0.1336)
OKLCHoklch(77.09% 0.149 116.6)
XYZxyz(37.5130, 47.2071, 12.2889)
Luminance0.4721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC042 #5342C0
analogous
#C09242 #AFC042 #70C042
triadic
#AFC042 #42AFC0 #C042AF
tetradic
#AFC042 #42C092 #5342C0 #C04270
square
#AFC042 #42C092 #5342C0 #C04270
split-complementary
#AFC042 #4270C0 #9242C0
monochromatic
#5D6622 #869431 #AFC042 #C2CF70 #D6DF9E

Accessibility & contrast

On white

2.01
#AFC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#AFC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC042
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC042#FFFFFF#000000##000000
##AFC0421.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB631
Deuteranopia (green-blind)
#CBB84B
Tritanopia (blue-blind)
#B9B6A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc042;
/* rgb */ color: rgb(175, 192, 66);
/* oklch */ color: oklch(77.1% 0.149 116.6);
Tailwind
colors: {
  custom: {
    50: '#cad37d',
    500: '#afc042',
    950: '#000000',
  },
}
SCSS
$custom: #afc042;
$custom-light: #cad37d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc042",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 68.095,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77088,
    "c": 0.14946,
    "h": 116.6
  },
  "luminance": 0.47207
}

Semantic roles & 50–950 ramp

primary
#AFC042
secondary
#9A93CB
accent
#4EDA61
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC042

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

Preview Lab → · Contrast checker → · Palette generator →

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