#AFB92E#AFB92E

#AFB92E is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.4% C 0.154 H 113.7°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#AFB92E
RGBrgb(175, 185, 46)
HSLhsl(64, 60%, 45%)
HSVhsv(64, 75%, 73%)
CMYKcmyk(5.4%, 0%, 75.1%, 27.5%)
CIE-LABlab(72.24, -20.17, 64.34)
CIE-LCHlch(72.24, 67.43, 107.40°)
OKLaboklab(75.37% -0.0622 0.1414)
OKLCHoklch(75.37% 0.154 113.7)
XYZxyz(35.5224, 44.0099, 9.2077)
Luminance0.4401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB92E #382EB9
analogous
#B97E2E #AFB92E #69B92E
triadic
#AFB92E #2EAFB9 #B92EAF
tetradic
#AFB92E #2EB97E #382EB9 #B92E69
square
#AFB92E #2EB97E #382EB9 #B92E69
split-complementary
#AFB92E #2E69B9 #7E2EB9
monochromatic
#525716 #818822 #AFB92E #CAD451 #D9E082

Accessibility & contrast

On white

2.14
#AFB92E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#AFB92E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB92E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB92E#FFFFFF#000000##000000
##AFB92E1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B00C
Deuteranopia (green-blind)
#C7B23A
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb92e;
/* rgb */ color: rgb(175, 185, 46);
/* oklch */ color: oklch(75.4% 0.154 113.7);
Tailwind
colors: {
  custom: {
    50: '#cacd72',
    500: '#afb92e',
    950: '#000000',
  },
}
SCSS
$custom: #afb92e;
$custom-light: #cacd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb92e",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 46
  },
  "hsl": {
    "h": 64.317,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75374,
    "c": 0.15449,
    "h": 113.7
  },
  "luminance": 0.44009
}

Semantic roles & 50–950 ramp

primary
#AFB92E
secondary
#807AC9
accent
#44E350
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB92E

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

Preview Lab → · Contrast checker → · Palette generator →

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