#AFB277#AFB277

#AFB277 is a light, moderate yellow. Relative luminance 0.423; OKLCH L 74.7% C 0.079 H 110.6°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#AFB277
RGBrgb(175, 178, 119)
HSLhsl(63, 28%, 58%)
HSVhsv(63, 33%, 70%)
CMYKcmyk(1.7%, 0%, 33.1%, 30.2%)
CIE-LABlab(71.07, -10.44, 29.87)
CIE-LCHlch(71.07, 31.64, 109.27°)
OKLaboklab(74.69% -0.0279 0.074)
OKLCHoklch(74.69% 0.079 110.6)
XYZxyz(36.9296, 42.2872, 23.6660)
Luminance0.4229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB277 #7A77B2
analogous
#B29777 #AFB277 #91B277
triadic
#AFB277 #77AFB2 #B277AF
tetradic
#AFB277 #77B297 #7A77B2 #B27791
square
#AFB277 #77B297 #7A77B2 #B27791
split-complementary
#AFB277 #7791B2 #9777B2
monochromatic
#6D6F3F #939755 #AFB277 #C6C89E #DDDEC5

Accessibility & contrast

On white

2.22
#AFB277 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#AFB277 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB277
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB277#FFFFFF#000000##000000
##AFB2771.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBAD73
Deuteranopia (green-blind)
#BBAF79
Tritanopia (blue-blind)
#B7ABA3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb277;
/* rgb */ color: rgb(175, 178, 119);
/* oklch */ color: oklch(74.7% 0.079 110.6);
Tailwind
colors: {
  custom: {
    50: '#c7c99f',
    500: '#afb277',
    950: '#000000',
  },
}
SCSS
$custom: #afb277;
$custom-light: #c7c99f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb277",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 119
  },
  "hsl": {
    "h": 63.051,
    "s": 27.7,
    "l": 58.235
  },
  "oklch": {
    "l": 0.74691,
    "c": 0.07908,
    "h": 110.6
  },
  "luminance": 0.42287
}

Semantic roles & 50–950 ramp

primary
#AFB277
secondary
#B8B7CE
accent
#64C469
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB277

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

Preview Lab → · Contrast checker → · Palette generator →

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