#AFB92A#AFB92A

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

Color values

HEX#AFB92A
RGBrgb(175, 185, 42)
HSLhsl(64, 63%, 45%)
HSVhsv(64, 77%, 73%)
CMYKcmyk(5.4%, 0%, 77.3%, 27.5%)
CIE-LABlab(72.22, -20.33, 65.59)
CIE-LCHlch(72.22, 68.67, 107.23°)
OKLaboklab(75.35% -0.063 0.1434)
OKLCHoklch(75.35% 0.157 113.7)
XYZxyz(35.4472, 43.9798, 8.8117)
Luminance0.4398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB92A #342AB9
analogous
#B97C2A #AFB92A #67B92A
triadic
#AFB92A #2AAFB9 #B92AAF
tetradic
#AFB92A #2AB97C #342AB9 #B92A67
square
#AFB92A #2AB97C #342AB9 #B92A67
split-complementary
#AFB92A #2A67B9 #7C2AB9
monochromatic
#515513 #80871F #AFB92A #CCD64A #DAE17C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB92A#FFFFFF#000000##000000
##AFB92A1.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)
#C7B000
Deuteranopia (green-blind)
#C7B237
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb92a;
/* rgb */ color: rgb(175, 185, 42);
/* oklch */ color: oklch(75.4% 0.157 113.7);
Tailwind
colors: {
  custom: {
    50: '#cbcd70',
    500: '#afb92a',
    950: '#000000',
  },
}
SCSS
$custom: #afb92a;
$custom-light: #cbcd70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb92a",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 42
  },
  "hsl": {
    "h": 64.196,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.75351,
    "c": 0.15657,
    "h": 113.7
  },
  "luminance": 0.43979
}

Semantic roles & 50–950 ramp

primary
#AFB92A
secondary
#7B75CA
accent
#42E64D
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB92A

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

Preview Lab → · Contrast checker → · Palette generator →

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