#AFB92D#AFB92D

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

Color values

HEX#AFB92D
RGBrgb(175, 185, 45)
HSLhsl(64, 61%, 45%)
HSVhsv(64, 76%, 73%)
CMYKcmyk(5.4%, 0%, 75.7%, 27.5%)
CIE-LABlab(72.23, -20.21, 64.66)
CIE-LCHlch(72.23, 67.75, 107.36°)
OKLaboklab(75.37% -0.0624 0.1419)
OKLCHoklch(75.37% 0.155 113.7)
XYZxyz(35.5029, 44.0021, 9.1051)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB92D #372DB9
analogous
#B97D2D #AFB92D #69B92D
triadic
#AFB92D #2DAFB9 #B92DAF
tetradic
#AFB92D #2DB97D #372DB9 #B92D69
square
#AFB92D #2DB97D #372DB9 #B92D69
split-complementary
#AFB92D #2D69B9 #7D2DB9
monochromatic
#525715 #808821 #AFB92D #CBD44F #D9E080

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB92D#FFFFFF#000000##000000
##AFB92D1.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)
#C7B009
Deuteranopia (green-blind)
#C7B239
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb92d;
/* rgb */ color: rgb(175, 185, 45);
/* oklch */ color: oklch(75.4% 0.155 113.7);
Tailwind
colors: {
  custom: {
    50: '#cbcd71',
    500: '#afb92d',
    950: '#000000',
  },
}
SCSS
$custom: #afb92d;
$custom-light: #cbcd71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb92d",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 45
  },
  "hsl": {
    "h": 64.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.75368,
    "c": 0.15503,
    "h": 113.7
  },
  "luminance": 0.44001
}

Semantic roles & 50–950 ramp

primary
#AFB92D
secondary
#7F79C9
accent
#44E44F
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB92D

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

Preview Lab → · Contrast checker → · Palette generator →

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