#AFB92C#AFB92C

#AFB92C 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#AFB92C
RGBrgb(175, 185, 44)
HSLhsl(64, 62%, 45%)
HSVhsv(64, 76%, 73%)
CMYKcmyk(5.4%, 0%, 76.2%, 27.5%)
CIE-LABlab(72.22, -20.25, 64.97)
CIE-LCHlch(72.22, 68.06, 107.31°)
OKLaboklab(75.36% -0.0626 0.1424)
OKLCHoklch(75.36% 0.156 113.7)
XYZxyz(35.4839, 43.9945, 9.0049)
Luminance0.4399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB92C #362CB9
analogous
#B97C2C #AFB92C #69B92C
triadic
#AFB92C #2CAFB9 #B92CAF
tetradic
#AFB92C #2CB97C #362CB9 #B92C69
square
#AFB92C #2CB97C #362CB9 #B92C69
split-complementary
#AFB92C #2C69B9 #7C2CB9
monochromatic
#515614 #808820 #AFB92C #CBD54D #DAE17F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #afb92c;
/* rgb */ color: rgb(175, 185, 44);
/* oklch */ color: oklch(75.4% 0.156 113.7);
Tailwind
colors: {
  custom: {
    50: '#cbcd71',
    500: '#afb92c',
    950: '#000000',
  },
}
SCSS
$custom: #afb92c;
$custom-light: #cbcd71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb92c",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 44
  },
  "hsl": {
    "h": 64.255,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75362,
    "c": 0.15555,
    "h": 113.7
  },
  "luminance": 0.43994
}

Semantic roles & 50–950 ramp

primary
#AFB92C
secondary
#7D78C9
accent
#43E54F
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB92C

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

Preview Lab → · Contrast checker → · Palette generator →

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