#AFA22F#AFA22F

#AFA22F is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.131 H 102.7°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AFA22F
RGBrgb(175, 162, 47)
HSLhsl(54, 58%, 44%)
HSVhsv(54, 73%, 69%)
CMYKcmyk(0%, 7.4%, 73.1%, 31.4%)
CIE-LABlab(65.87, -8.31, 57.97)
CIE-LCHlch(65.87, 58.56, 98.16°)
OKLaboklab(70.3% -0.0289 0.1281)
OKLCHoklch(70.3% 0.131 102.7)
XYZxyz(31.1140, 35.1612, 7.8367)
Luminance0.3516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA22F #2F3CAF
analogous
#AF622F #AFA22F #7CAF2F
triadic
#AFA22F #2FAFA2 #A22FAF
tetradic
#AFA22F #2FAF62 #2F3CAF #AF2F7C
square
#AFA22F #2FAF62 #2F3CAF #AF2F7C
split-complementary
#AFA22F #2F7CAF #622FAF
monochromatic
#4F4915 #7F7522 #AFA22F #CFC24C #DCD27C

Accessibility & contrast

On white

2.61
#AFA22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AFA22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA22F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA22F#FFFFFF#000000##000000
##AFA22F1.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1B
Deuteranopia (green-blind)
#B5A337
Tritanopia (blue-blind)
#BC968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa22f;
/* rgb */ color: rgb(175, 162, 47);
/* oklch */ color: oklch(70.3% 0.131 102.7);
Tailwind
colors: {
  custom: {
    50: '#cabd70',
    500: '#afa22f',
    950: '#000000',
  },
}
SCSS
$custom: #afa22f;
$custom-light: #cabd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afa22f",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 53.906,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.70297,
    "c": 0.13134,
    "h": 102.7
  },
  "luminance": 0.3516
}

Semantic roles & 50–950 ramp

primary
#AFA22F
secondary
#757DC4
accent
#57E147
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA22F

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

Preview Lab → · Contrast checker → · Palette generator →

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