#AFB940#AFB940

#AFB940 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.5% C 0.143 H 113.9°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#AFB940
RGBrgb(175, 185, 64)
HSLhsl(65, 49%, 49%)
HSVhsv(65, 65%, 73%)
CMYKcmyk(5.4%, 0%, 65.4%, 27.5%)
CIE-LABlab(72.35, -19.21, 57.83)
CIE-LCHlch(72.35, 60.94, 108.37°)
OKLaboklab(75.5% -0.0578 0.1307)
OKLCHoklch(75.5% 0.143 113.9)
XYZxyz(35.9545, 44.1827, 11.4836)
Luminance0.4418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB940 #4A40B9
analogous
#B98740 #AFB940 #73B940
triadic
#AFB940 #40AFB9 #B940AF
tetradic
#AFB940 #40B987 #4A40B9 #B94073
square
#AFB940 #40B987 #4A40B9 #B94073
split-complementary
#AFB940 #4073B9 #8740B9
monochromatic
#595E21 #848C30 #AFB940 #C4CC6B #D6DB98

Accessibility & contrast

On white

2.13
#AFB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#AFB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB940
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB940#FFFFFF#000000##000000
##AFB9401.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B02F
Deuteranopia (green-blind)
#C6B348
Tritanopia (blue-blind)
#BAAEA0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb940;
/* rgb */ color: rgb(175, 185, 64);
/* oklch */ color: oklch(75.5% 0.143 113.9);
Tailwind
colors: {
  custom: {
    50: '#cacd7b',
    500: '#afb940',
    950: '#000000',
  },
}
SCSS
$custom: #afb940;
$custom-light: #cacd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb940",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 64.959,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75503,
    "c": 0.14292,
    "h": 113.9
  },
  "luminance": 0.44182
}

Semantic roles & 50–950 ramp

primary
#AFB940
secondary
#928EC7
accent
#50D85B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB940

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

Preview Lab → · Contrast checker → · Palette generator →

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