#AFB271#AFB271

#AFB271 is a light, moderate yellow. Relative luminance 0.421; OKLCH L 74.6% C 0.086 H 110.6°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#AFB271
RGBrgb(175, 178, 113)
HSLhsl(63, 30%, 57%)
HSVhsv(63, 37%, 70%)
CMYKcmyk(1.7%, 0%, 36.5%, 30.2%)
CIE-LABlab(70.97, -11.18, 32.90)
CIE-LCHlch(70.97, 34.75, 108.78°)
OKLaboklab(74.58% -0.0303 0.0808)
OKLCHoklch(74.58% 0.086 110.6)
XYZxyz(36.5805, 42.1476, 21.8278)
Luminance0.4215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB271 #7471B2
analogous
#B29571 #AFB271 #8FB271
triadic
#AFB271 #71AFB2 #B271AF
tetradic
#AFB271 #71B295 #7471B2 #B2718F
square
#AFB271 #71B295 #7471B2 #B2718F
split-complementary
#AFB271 #718FB2 #9571B2
monochromatic
#6B6D3B #929551 #AFB271 #C5C899 #DCDDC0

Accessibility & contrast

On white

2.23
#AFB271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#AFB271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB271
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB271#FFFFFF#000000##000000
##AFB2711.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCAD6C
Deuteranopia (green-blind)
#BCAF74
Tritanopia (blue-blind)
#B7ABA2
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb271;
/* rgb */ color: rgb(175, 178, 113);
/* oklch */ color: oklch(74.6% 0.086 110.6);
Tailwind
colors: {
  custom: {
    50: '#c8c99a',
    500: '#afb271',
    950: '#000000',
  },
}
SCSS
$custom: #afb271;
$custom-light: #c8c99a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb271",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 113
  },
  "hsl": {
    "h": 62.769,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.74583,
    "c": 0.08633,
    "h": 110.6
  },
  "luminance": 0.42147
}

Semantic roles & 50–950 ramp

primary
#AFB271
secondary
#B3B2CD
accent
#62C666
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB271

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

Preview Lab → · Contrast checker → · Palette generator →

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