#AFB124#AFB124

#AFB124 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.5% C 0.151 H 110.5°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#AFB124
RGBrgb(175, 177, 36)
HSLhsl(61, 66%, 42%)
HSVhsv(61, 80%, 69%)
CMYKcmyk(1.1%, 0%, 79.7%, 30.6%)
CIE-LABlab(69.96, -16.54, 65.33)
CIE-LCHlch(69.96, 67.39, 104.20°)
OKLaboklab(73.53% -0.0529 0.1417)
OKLCHoklch(73.53% 0.151 110.5)
XYZxyz(33.7210, 40.6866, 7.7457)
Luminance0.4069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB124 #2624B1
analogous
#B16D24 #AFB124 #69B124
triadic
#AFB124 #24AFB1 #B124AF
tetradic
#AFB124 #24B16D #2624B1 #B12469
square
#AFB124 #24B16D #2624B1 #B12469
split-complementary
#AFB124 #2469B1 #6D24B1
monochromatic
#4A4B0F #7D7E1A #AFB124 #D5D73B #E0E16E

Accessibility & contrast

On white

2.30
#AFB124 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#AFB124 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB124
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB124#FFFFFF#000000##000000
##AFB1241.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C1AD31
Tritanopia (blue-blind)
#BCA597
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb124;
/* rgb */ color: rgb(175, 177, 36);
/* oklch */ color: oklch(73.5% 0.151 110.5);
Tailwind
colors: {
  custom: {
    50: '#cbc86c',
    500: '#afb124',
    950: '#000000',
  },
}
SCSS
$custom: #afb124;
$custom-light: #cbc86c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb124",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 36
  },
  "hsl": {
    "h": 60.851,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.73533,
    "c": 0.15128,
    "h": 110.5
  },
  "luminance": 0.40686
}

Semantic roles & 50–950 ramp

primary
#AFB124
secondary
#6A69C8
accent
#3FE941
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFB124

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

Preview Lab → · Contrast checker → · Palette generator →

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