#AFB22E#AFB22E

#AFB22E 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#AFB22E
RGBrgb(175, 178, 46)
HSLhsl(61, 59%, 44%)
HSVhsv(61, 74%, 70%)
CMYKcmyk(1.7%, 0%, 74.2%, 30.2%)
CIE-LABlab(70.28, -16.65, 62.52)
CIE-LCHlch(70.28, 64.70, 104.91°)
OKLaboklab(73.81% -0.0524 0.1376)
OKLCHoklch(73.81% 0.147 110.8)
XYZxyz(34.0939, 41.1529, 8.7316)
Luminance0.4115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB22E #312EB2
analogous
#B2732E #AFB22E #6DB22E
triadic
#AFB22E #2EAFB2 #B22EAF
tetradic
#AFB22E #2EB273 #312EB2 #B22E6D
square
#AFB22E #2EB273 #312EB2 #B22E6D
split-complementary
#AFB22E #2E6DB2 #732EB2
monochromatic
#4F5115 #7F8121 #AFB22E #CED14C #DBDD7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB22E#FFFFFF#000000##000000
##AFB22E1.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)
#C0AA11
Deuteranopia (green-blind)
#C1AE39
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb22e;
/* rgb */ color: rgb(175, 178, 46);
/* oklch */ color: oklch(73.8% 0.147 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac871',
    500: '#afb22e',
    950: '#000000',
  },
}
SCSS
$custom: #afb22e;
$custom-light: #cac871;
$custom-dark: #000000;
JSON
{
  "hex": "#afb22e",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 46
  },
  "hsl": {
    "h": 61.364,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73811,
    "c": 0.14719,
    "h": 110.8
  },
  "luminance": 0.41152
}

Semantic roles & 50–950 ramp

primary
#AFB22E
secondary
#7876C6
accent
#46E249
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB22E

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

Preview Lab → · Contrast checker → · Palette generator →

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