#AFB24F#AFB24F

#AFB24F is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.1% C 0.122 H 110.6°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFB24F
RGBrgb(175, 178, 79)
HSLhsl(62, 39%, 50%)
HSVhsv(62, 56%, 70%)
CMYKcmyk(1.7%, 0%, 55.6%, 30.2%)
CIE-LABlab(70.54, -14.59, 49.31)
CIE-LCHlch(70.54, 51.43, 106.48°)
OKLaboklab(74.1% -0.0432 0.1146)
OKLCHoklch(74.1% 0.123 110.6)
XYZxyz(35.0117, 41.5201, 13.5655)
Luminance0.4152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB24F #524FB2
analogous
#B2834F #AFB24F #7DB24F
triadic
#AFB24F #4FAFB2 #B24FAF
tetradic
#AFB24F #4FB283 #524FB2 #B24F7D
square
#AFB24F #4FB283 #524FB2 #B24F7D
split-complementary
#AFB24F #4F7DB2 #834FB2
monochromatic
#5C5E29 #86883C #AFB24F #C2C57A #D6D7A4

Accessibility & contrast

On white

2.26
#AFB24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFB24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB24F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB24F#FFFFFF#000000##000000
##AFB24F1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB45
Deuteranopia (green-blind)
#BFAE55
Tritanopia (blue-blind)
#BAA89C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb24f;
/* rgb */ color: rgb(175, 178, 79);
/* oklch */ color: oklch(74.1% 0.122 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c884',
    500: '#afb24f',
    950: '#000000',
  },
}
SCSS
$custom: #afb24f;
$custom-light: #c9c884;
$custom-dark: #000000;
JSON
{
  "hex": "#afb24f",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 79
  },
  "hsl": {
    "h": 61.818,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.74097,
    "c": 0.1225,
    "h": 110.6
  },
  "luminance": 0.41519
}

Semantic roles & 50–950 ramp

primary
#AFB24F
secondary
#9A98C4
accent
#59CF5C
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB24F

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

Preview Lab → · Contrast checker → · Palette generator →

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