#AFB02C#AFB02C

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

Color values

HEX#AFB02C
RGBrgb(175, 176, 44)
HSLhsl(60, 60%, 43%)
HSVhsv(60, 75%, 69%)
CMYKcmyk(0.6%, 0%, 75%, 31%)
CIE-LABlab(69.72, -15.72, 62.66)
CIE-LCHlch(69.72, 64.60, 104.08°)
OKLaboklab(73.35% -0.0499 0.1375)
OKLCHoklch(73.35% 0.146 110)
XYZxyz(33.6604, 40.3475, 8.3971)
Luminance0.4035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB02C #2D2CB0
analogous
#B06F2C #AFB02C #6DB02C
triadic
#AFB02C #2CAFB0 #B02CAF
tetradic
#AFB02C #2CB06F #2D2CB0 #B02C6D
square
#AFB02C #2CB06F #2D2CB0 #B02C6D
split-complementary
#AFB02C #2C6DB0 #6F2CB0
monochromatic
#4E4E14 #7E7F20 #AFB02C #D0D148 #DDDD79

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB02C#FFFFFF#000000##000000
##AFB02C1.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)
#BEA80D
Deuteranopia (green-blind)
#C0AC37
Tritanopia (blue-blind)
#BCA597
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb02c;
/* rgb */ color: rgb(175, 176, 44);
/* oklch */ color: oklch(73.4% 0.146 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc770',
    500: '#afb02c',
    950: '#000000',
  },
}
SCSS
$custom: #afb02c;
$custom-light: #cbc770;
$custom-dark: #000000;
JSON
{
  "hex": "#afb02c",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 44
  },
  "hsl": {
    "h": 60.455,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73354,
    "c": 0.14628,
    "h": 110
  },
  "luminance": 0.40346
}

Semantic roles & 50–950 ramp

primary
#AFB02C
secondary
#7372C6
accent
#45E346
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB02C

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

Preview Lab → · Contrast checker → · Palette generator →

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