#AFB92B#AFB92B

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

Color values

HEX#AFB92B
RGBrgb(175, 185, 43)
HSLhsl(64, 62%, 45%)
HSVhsv(64, 77%, 73%)
CMYKcmyk(5.4%, 0%, 76.8%, 27.5%)
CIE-LABlab(72.22, -20.29, 65.28)
CIE-LCHlch(72.22, 68.36, 107.27°)
OKLaboklab(75.36% -0.0628 0.1429)
OKLCHoklch(75.36% 0.156 113.7)
XYZxyz(35.4653, 43.9870, 8.9071)
Luminance0.4399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB92B #352BB9
analogous
#B97C2B #AFB92B #68B92B
triadic
#AFB92B #2BAFB9 #B92BAF
tetradic
#AFB92B #2BB97C #352BB9 #B92B68
square
#AFB92B #2BB97C #352BB9 #B92B68
split-complementary
#AFB92B #2B68B9 #7C2BB9
monochromatic
#515614 #80871F #AFB92B #CCD54C #DAE17E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB92B#FFFFFF#000000##000000
##AFB92B1.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)
#C7B001
Deuteranopia (green-blind)
#C7B238
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb92b;
/* rgb */ color: rgb(175, 185, 43);
/* oklch */ color: oklch(75.4% 0.156 113.7);
Tailwind
colors: {
  custom: {
    50: '#cbcd70',
    500: '#afb92b',
    950: '#000000',
  },
}
SCSS
$custom: #afb92b;
$custom-light: #cbcd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb92b",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 43
  },
  "hsl": {
    "h": 64.225,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75357,
    "c": 0.15607,
    "h": 113.7
  },
  "luminance": 0.43986
}

Semantic roles & 50–950 ramp

primary
#AFB92B
secondary
#7C76C9
accent
#42E54E
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB92B

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

Preview Lab → · Contrast checker → · Palette generator →

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