#AFB02A#AFB02A

#AFB02A is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.147 H 110.0°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#AFB02A
RGBrgb(175, 176, 42)
HSLhsl(60, 61%, 43%)
HSVhsv(60, 76%, 69%)
CMYKcmyk(0.6%, 0%, 76.1%, 31%)
CIE-LABlab(69.71, -15.80, 63.30)
CIE-LCHlch(69.71, 65.24, 104.02°)
OKLaboklab(73.34% -0.0504 0.1385)
OKLCHoklch(73.34% 0.147 110)
XYZxyz(33.6237, 40.3328, 8.2039)
Luminance0.4033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB02A #2B2AB0
analogous
#B06E2A #AFB02A #6CB02A
triadic
#AFB02A #2AAFB0 #B02AAF
tetradic
#AFB02A #2AB06E #2B2AB0 #B02A6C
square
#AFB02A #2AB06E #2B2AB0 #B02A6C
split-complementary
#AFB02A #2A6CB0 #6E2AB0
monochromatic
#4D4D12 #7E7F1E #AFB02A #D1D345 #DEDE76

Accessibility & contrast

On white

2.32
#AFB02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#AFB02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB02A
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB02A#FFFFFF#000000##000000
##AFB02A1.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA806
Deuteranopia (green-blind)
#C0AC35
Tritanopia (blue-blind)
#BCA597
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb02a;
/* rgb */ color: rgb(175, 176, 42);
/* oklch */ color: oklch(73.3% 0.147 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76f',
    500: '#afb02a',
    950: '#000000',
  },
}
SCSS
$custom: #afb02a;
$custom-light: #cbc76f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb02a",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 42
  },
  "hsl": {
    "h": 60.448,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73343,
    "c": 0.14736,
    "h": 110
  },
  "luminance": 0.40332
}

Semantic roles & 50–950 ramp

primary
#AFB02A
secondary
#7070C6
accent
#43E544
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB02A

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

Preview Lab → · Contrast checker → · Palette generator →

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