#AFB336#AFB336

#AFB336 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.143 H 111.2°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFB336
RGBrgb(175, 179, 54)
HSLhsl(62, 54%, 46%)
HSVhsv(62, 70%, 70%)
CMYKcmyk(2.2%, 0%, 69.8%, 29.8%)
CIE-LABlab(70.61, -16.76, 59.98)
CIE-LCHlch(70.61, 62.28, 105.62°)
OKLaboklab(74.09% -0.0519 0.1336)
OKLCHoklch(74.09% 0.143 111.2)
XYZxyz(34.4663, 41.6214, 9.7075)
Luminance0.4162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB336 #3A36B3
analogous
#B37836 #AFB336 #70B336
triadic
#AFB336 #36AFB3 #B336AF
tetradic
#AFB336 #36B378 #3A36B3 #B33670
square
#AFB336 #36B378 #3A36B3 #B33670
split-complementary
#AFB336 #3670B3 #7836B3
monochromatic
#53551A #818428 #AFB336 #C9CD59 #D9DB88

Accessibility & contrast

On white

2.25
#AFB336 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFB336 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB336
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB336#FFFFFF#000000##000000
##AFB3361.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB21
Deuteranopia (green-blind)
#C2AE3F
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb336;
/* rgb */ color: rgb(175, 179, 54);
/* oklch */ color: oklch(74.1% 0.143 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac975',
    500: '#afb336',
    950: '#000000',
  },
}
SCSS
$custom: #afb336;
$custom-light: #cac975;
$custom-dark: #000000;
JSON
{
  "hex": "#afb336",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 54
  },
  "hsl": {
    "h": 61.92,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74087,
    "c": 0.14335,
    "h": 111.2
  },
  "luminance": 0.41621
}

Semantic roles & 50–950 ramp

primary
#AFB336
secondary
#8280C5
accent
#4BDD4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB336

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

Preview Lab → · Contrast checker → · Palette generator →

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