#AFB731#AFB731

#AFB731 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 74.9% C 0.151 H 112.9°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#AFB731
RGBrgb(175, 183, 49)
HSLhsl(64, 58%, 45%)
HSVhsv(64, 73%, 72%)
CMYKcmyk(4.4%, 0%, 73.2%, 28.2%)
CIE-LABlab(71.69, -19.03, 62.83)
CIE-LCHlch(71.69, 65.65, 106.85°)
OKLaboklab(74.94% -0.0587 0.1388)
OKLCHoklch(74.94% 0.151 112.9)
XYZxyz(35.1682, 43.2035, 9.3917)
Luminance0.4320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB731 #3931B7
analogous
#B77C31 #AFB731 #6CB731
triadic
#AFB731 #31AFB7 #B731AF
tetradic
#AFB731 #31B77C #3931B7 #B7316C
square
#AFB731 #31B77C #3931B7 #B7316C
split-complementary
#AFB731 #316CB7 #7C31B7
monochromatic
#535617 #818724 #AFB731 #CAD154 #D9DE84

Accessibility & contrast

On white

2.18
#AFB731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#AFB731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB731
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB731#FFFFFF#000000##000000
##AFB7311.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE16
Deuteranopia (green-blind)
#C5B13C
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb731;
/* rgb */ color: rgb(175, 183, 49);
/* oklch */ color: oklch(74.9% 0.151 112.9);
Tailwind
colors: {
  custom: {
    50: '#cacc73',
    500: '#afb731',
    950: '#000000',
  },
}
SCSS
$custom: #afb731;
$custom-light: #cacc73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb731",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 63.582,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74944,
    "c": 0.15068,
    "h": 112.9
  },
  "luminance": 0.43203
}

Semantic roles & 50–950 ramp

primary
#AFB731
secondary
#817CC8
accent
#47E150
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB731

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

Preview Lab → · Contrast checker → · Palette generator →

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