#AFB92F#AFB92F

#AFB92F 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#AFB92F
RGBrgb(175, 185, 47)
HSLhsl(64, 59%, 45%)
HSVhsv(64, 75%, 73%)
CMYKcmyk(5.4%, 0%, 74.6%, 27.5%)
CIE-LABlab(72.24, -20.12, 64.02)
CIE-LCHlch(72.24, 67.11, 107.45°)
OKLaboklab(75.38% -0.0619 0.1409)
OKLCHoklch(75.38% 0.154 113.7)
XYZxyz(35.5423, 44.0179, 9.3128)
Luminance0.4402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB92F #392FB9
analogous
#B97E2F #AFB92F #6AB92F
triadic
#AFB92F #2FAFB9 #B92FAF
tetradic
#AFB92F #2FB97E #392FB9 #B92F6A
square
#AFB92F #2FB97E #392FB9 #B92F6A
split-complementary
#AFB92F #2F6AB9 #7E2FB9
monochromatic
#535716 #818823 #AFB92F #CAD352 #D9DF83

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB92F#FFFFFF#000000##000000
##AFB92F1.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)
#C7B00F
Deuteranopia (green-blind)
#C7B23B
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb92f;
/* rgb */ color: rgb(175, 185, 47);
/* oklch */ color: oklch(75.4% 0.154 113.7);
Tailwind
colors: {
  custom: {
    50: '#cacd72',
    500: '#afb92f',
    950: '#000000',
  },
}
SCSS
$custom: #afb92f;
$custom-light: #cacd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb92f",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 47
  },
  "hsl": {
    "h": 64.348,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7538,
    "c": 0.15394,
    "h": 113.7
  },
  "luminance": 0.44017
}

Semantic roles & 50–950 ramp

primary
#AFB92F
secondary
#817BC9
accent
#45E351
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB92F

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

Preview Lab → · Contrast checker → · Palette generator →

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