#AFB151#AFB151

#AFB151 is a light, moderate yellow. Relative luminance 0.412; OKLCH L 73.9% C 0.119 H 110.1°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFB151
RGBrgb(175, 177, 81)
HSLhsl(61, 38%, 51%)
HSVhsv(61, 54%, 69%)
CMYKcmyk(1.1%, 0%, 54.2%, 30.6%)
CIE-LABlab(70.28, -13.91, 48.09)
CIE-LCHlch(70.28, 50.06, 106.14°)
OKLaboklab(73.9% -0.041 0.1122)
OKLCHoklch(73.9% 0.12 110.1)
XYZxyz(34.8874, 41.1531, 13.8885)
Luminance0.4115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB151 #5351B1
analogous
#B18351 #AFB151 #7FB151
triadic
#AFB151 #51AFB1 #B151AF
tetradic
#AFB151 #51B183 #5351B1 #B1517F
square
#AFB151 #51B183 #5351B1 #B1517F
split-complementary
#AFB151 #517FB1 #8351B1
monochromatic
#5D5E2A #86883D #AFB151 #C2C47B #D6D7A6

Accessibility & contrast

On white

2.28
#AFB151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#AFB151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB151
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB151#FFFFFF#000000##000000
##AFB1511.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAA47
Deuteranopia (green-blind)
#BEAD56
Tritanopia (blue-blind)
#BAA79C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb151;
/* rgb */ color: rgb(175, 177, 81);
/* oklch */ color: oklch(73.9% 0.119 110.1);
Tailwind
colors: {
  custom: {
    50: '#c9c885',
    500: '#afb151',
    950: '#000000',
  },
}
SCSS
$custom: #afb151;
$custom-light: #c9c885;
$custom-dark: #000000;
JSON
{
  "hex": "#afb151",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 61.25,
    "s": 38.095,
    "l": 50.588
  },
  "oklch": {
    "l": 0.739,
    "c": 0.1195,
    "h": 110.1
  },
  "luminance": 0.41152
}

Semantic roles & 50–950 ramp

primary
#AFB151
secondary
#9A9AC4
accent
#5ACE5C
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB151

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

Preview Lab → · Contrast checker → · Palette generator →

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