#AFB031#AFB031

#AFB031 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.4% C 0.143 H 109.9°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#AFB031
RGBrgb(175, 176, 49)
HSLhsl(60, 56%, 44%)
HSVhsv(60, 72%, 69%)
CMYKcmyk(0.6%, 0%, 72.2%, 31%)
CIE-LABlab(69.74, -15.49, 60.97)
CIE-LCHlch(69.74, 62.90, 104.26°)
OKLaboklab(73.39% -0.0489 0.1348)
OKLCHoklch(73.39% 0.143 109.9)
XYZxyz(33.7601, 40.3874, 8.9223)
Luminance0.4039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB031 #3231B0
analogous
#B07131 #AFB031 #70B031
triadic
#AFB031 #31AFB0 #B031AF
tetradic
#AFB031 #31B071 #3231B0 #B03170
square
#AFB031 #31B071 #3231B0 #B03170
split-complementary
#AFB031 #3170B0 #7131B0
monochromatic
#505016 #7F8024 #AFB031 #CDCE50 #DBDC80

Accessibility & contrast

On white

2.31
#AFB031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#AFB031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB031
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB031#FFFFFF#000000##000000
##AFB0311.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA819
Deuteranopia (green-blind)
#C0AC3B
Tritanopia (blue-blind)
#BBA597
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb031;
/* rgb */ color: rgb(175, 176, 49);
/* oklch */ color: oklch(73.4% 0.143 109.9);
Tailwind
colors: {
  custom: {
    50: '#cac772',
    500: '#afb031',
    950: '#000000',
  },
}
SCSS
$custom: #afb031;
$custom-light: #cac772;
$custom-dark: #000000;
JSON
{
  "hex": "#afb031",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 60.472,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.73386,
    "c": 0.1434,
    "h": 109.9
  },
  "luminance": 0.40386
}

Semantic roles & 50–950 ramp

primary
#AFB031
secondary
#7978C5
accent
#48E049
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB031

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

Preview Lab → · Contrast checker → · Palette generator →

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