#AFA92B#AFA92B

#AFA92B is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.8% C 0.140 H 106.6°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AFA92B
RGBrgb(175, 169, 43)
HSLhsl(57, 61%, 43%)
HSVhsv(57, 75%, 69%)
CMYKcmyk(0%, 3.4%, 75.4%, 31.4%)
CIE-LABlab(67.77, -12.16, 61.18)
CIE-LCHlch(67.77, 62.38, 101.24°)
OKLaboklab(71.8% -0.0401 0.1342)
OKLCHoklch(71.8% 0.14 106.6)
XYZxyz(32.3045, 37.6655, 7.8535)
Luminance0.3766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA92B #2B31AF
analogous
#AF672B #AFA92B #73AF2B
triadic
#AFA92B #2BAFA9 #A92BAF
tetradic
#AFA92B #2BAF67 #2B31AF #AF2B73
square
#AFA92B #2BAF67 #2B31AF #AF2B73
split-complementary
#AFA92B #2B73AF #672BAF
monochromatic
#4D4A13 #7E7A1F #AFA92B #D1CB46 #DED977

Accessibility & contrast

On white

2.46
#AFA92B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#AFA92B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA92B
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA92B#FFFFFF#000000##000000
##AFA92B1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A20F
Deuteranopia (green-blind)
#BAA735
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa92b;
/* rgb */ color: rgb(175, 169, 43);
/* oklch */ color: oklch(71.8% 0.140 106.6);
Tailwind
colors: {
  custom: {
    50: '#cbc26e',
    500: '#afa92b',
    950: '#000000',
  },
}
SCSS
$custom: #afa92b;
$custom-light: #cbc26e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa92b",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 43
  },
  "hsl": {
    "h": 57.273,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.71802,
    "c": 0.14004,
    "h": 106.6
  },
  "luminance": 0.37664
}

Semantic roles & 50–950 ramp

primary
#AFA92B
secondary
#7074C5
accent
#4BE444
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA92B

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

Preview Lab → · Contrast checker → · Palette generator →

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