#AFB22F#AFB22F

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

Color values

HEX#AFB22F
RGBrgb(175, 178, 47)
HSLhsl(61, 58%, 44%)
HSVhsv(61, 74%, 70%)
CMYKcmyk(1.7%, 0%, 73.6%, 30.2%)
CIE-LABlab(70.29, -16.60, 62.18)
CIE-LCHlch(70.29, 64.36, 104.95°)
OKLaboklab(73.82% -0.0521 0.137)
OKLCHoklch(73.82% 0.147 110.8)
XYZxyz(34.1139, 41.1609, 8.8366)
Luminance0.4116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB22F #322FB2
analogous
#B2742F #AFB22F #6EB22F
triadic
#AFB22F #2FAFB2 #B22FAF
tetradic
#AFB22F #2FB274 #322FB2 #B22F6E
square
#AFB22F #2FB274 #322FB2 #B22F6E
split-complementary
#AFB22F #2F6EB2 #742FB2
monochromatic
#505115 #7F8222 #AFB22F #CDD04E #DBDD7E

Accessibility & contrast

On white

2.27
#AFB22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB22F#FFFFFF#000000##000000
##AFB22F1.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb22f;
/* rgb */ color: rgb(175, 178, 47);
/* oklch */ color: oklch(73.8% 0.147 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac871',
    500: '#afb22f',
    950: '#000000',
  },
}
SCSS
$custom: #afb22f;
$custom-light: #cac871;
$custom-dark: #000000;
JSON
{
  "hex": "#afb22f",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 61.374,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.73817,
    "c": 0.14663,
    "h": 110.8
  },
  "luminance": 0.4116
}

Semantic roles & 50–950 ramp

primary
#AFB22F
secondary
#7977C6
accent
#46E14A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB22F

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

Preview Lab → · Contrast checker → · Palette generator →

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