#AFBC42#AFBC42

#AFBC42 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.2% C 0.145 H 115.1°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#AFBC42
RGBrgb(175, 188, 66)
HSLhsl(66, 48%, 50%)
HSVhsv(66, 65%, 74%)
CMYKcmyk(6.9%, 0%, 64.9%, 26.3%)
CIE-LABlab(73.20, -20.58, 57.91)
CIE-LCHlch(73.20, 61.46, 109.56°)
OKLaboklab(76.19% -0.0614 0.1312)
OKLCHoklch(76.19% 0.145 115.1)
XYZxyz(36.6467, 45.4743, 12.0001)
Luminance0.4547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC42 #4F42BC
analogous
#BC8C42 #AFBC42 #72BC42
triadic
#AFBC42 #42AFBC #BC42AF
tetradic
#AFBC42 #42BC8C #4F42BC #BC4272
square
#AFBC42 #42BC8C #4F42BC #BC4272
split-complementary
#AFBC42 #4272BC #8C42BC
monochromatic
#5B6122 #858F32 #AFBC42 #C2CC6F #D5DC9C

Accessibility & contrast

On white

2.08
#AFBC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.09
#AFBC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC42
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC42#FFFFFF#000000##000000
##AFBC421.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B332
Deuteranopia (green-blind)
#C8B54A
Tritanopia (blue-blind)
#BAB2A3
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbc42;
/* rgb */ color: rgb(175, 188, 66);
/* oklch */ color: oklch(76.2% 0.145 115.1);
Tailwind
colors: {
  custom: {
    50: '#cad07d',
    500: '#afbc42',
    950: '#000000',
  },
}
SCSS
$custom: #afbc42;
$custom-light: #cad07d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc42",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 66
  },
  "hsl": {
    "h": 66.393,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.76191,
    "c": 0.14484,
    "h": 115.1
  },
  "luminance": 0.45474
}

Semantic roles & 50–950 ramp

primary
#AFBC42
secondary
#9791C9
accent
#50D85F
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBC42

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

Preview Lab → · Contrast checker → · Palette generator →

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