#AFB120#AFB120

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

Color values

HEX#AFB120
RGBrgb(175, 177, 32)
HSLhsl(61, 69%, 41%)
HSVhsv(61, 82%, 69%)
CMYKcmyk(1.1%, 0%, 81.9%, 30.6%)
CIE-LABlab(69.94, -16.67, 66.40)
CIE-LCHlch(69.94, 68.46, 104.09°)
OKLaboklab(73.52% -0.0535 0.1433)
OKLCHoklch(73.52% 0.153 110.5)
XYZxyz(33.6633, 40.6635, 7.4418)
Luminance0.4066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB120 #2220B1
analogous
#B16A20 #AFB120 #66B120
triadic
#AFB120 #20AFB1 #B120AF
tetradic
#AFB120 #20B16A #2220B1 #B12066
square
#AFB120 #20B16A #2220B1 #B12066
split-complementary
#AFB120 #2066B1 #6A20B1
monochromatic
#49490D #7C7D17 #AFB120 #D8DA34 #E2E468

Accessibility & contrast

On white

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

On black

9.13
#AFB120 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB120
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB120#FFFFFF#000000##000000
##AFB1201.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb120;
/* rgb */ color: rgb(175, 177, 32);
/* oklch */ color: oklch(73.5% 0.153 110.5);
Tailwind
colors: {
  custom: {
    50: '#cbc86b',
    500: '#afb120',
    950: '#000000',
  },
}
SCSS
$custom: #afb120;
$custom-light: #cbc86b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb120",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 32
  },
  "hsl": {
    "h": 60.828,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73515,
    "c": 0.15299,
    "h": 110.5
  },
  "luminance": 0.40663
}

Semantic roles & 50–950 ramp

primary
#AFB120
secondary
#6564C9
accent
#3CEC3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB120

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

Preview Lab → · Contrast checker → · Palette generator →

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