#AFB22D#AFB22D

#AFB22D is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.8% C 0.148 H 110.8°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFB22D
RGBrgb(175, 178, 45)
HSLhsl(61, 60%, 44%)
HSVhsv(61, 75%, 70%)
CMYKcmyk(1.7%, 0%, 74.7%, 30.2%)
CIE-LABlab(70.28, -16.69, 62.85)
CIE-LCHlch(70.28, 65.03, 104.87°)
OKLaboklab(73.8% -0.0526 0.1381)
OKLCHoklch(73.8% 0.148 110.8)
XYZxyz(34.0744, 41.1451, 8.6290)
Luminance0.4114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB22D #302DB2
analogous
#B2722D #AFB22D #6CB22D
triadic
#AFB22D #2DAFB2 #B22DAF
tetradic
#AFB22D #2DB272 #302DB2 #B22D6C
square
#AFB22D #2DB272 #302DB2 #B22D6C
split-complementary
#AFB22D #2D6CB2 #722DB2
monochromatic
#4F5014 #7F8121 #AFB22D #CED14B #DCDE7C

Accessibility & contrast

On white

2.28
#AFB22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#AFB22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB22D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB22D#FFFFFF#000000##000000
##AFB22D1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA0E
Deuteranopia (green-blind)
#C1AE38
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb22d;
/* rgb */ color: rgb(175, 178, 45);
/* oklch */ color: oklch(73.8% 0.148 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac870',
    500: '#afb22d',
    950: '#000000',
  },
}
SCSS
$custom: #afb22d;
$custom-light: #cac870;
$custom-dark: #000000;
JSON
{
  "hex": "#afb22d",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 61.353,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73805,
    "c": 0.14775,
    "h": 110.8
  },
  "luminance": 0.41144
}

Semantic roles & 50–950 ramp

primary
#AFB22D
secondary
#7675C6
accent
#45E349
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB22D

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

Preview Lab → · Contrast checker → · Palette generator →

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