#AFB279#AFB279

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

Color values

HEX#AFB279
RGBrgb(175, 178, 121)
HSLhsl(63, 27%, 59%)
HSVhsv(63, 32%, 70%)
CMYKcmyk(1.7%, 0%, 32%, 30.2%)
CIE-LABlab(71.10, -10.19, 28.85)
CIE-LCHlch(71.10, 30.60, 109.45°)
OKLaboklab(74.73% -0.027 0.0717)
OKLCHoklch(74.73% 0.077 110.7)
XYZxyz(37.0509, 42.3357, 24.3052)
Luminance0.4234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB279 #7C79B2
analogous
#B29879 #AFB279 #92B279
triadic
#AFB279 #79AFB2 #B279AF
tetradic
#AFB279 #79B298 #7C79B2 #B27992
square
#AFB279 #79B298 #7C79B2 #B27992
split-complementary
#AFB279 #7992B2 #9879B2
monochromatic
#6E7040 #949757 #AFB279 #C6C8A0 #DDDFC7

Accessibility & contrast

On white

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

On black

9.47
#AFB279 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB279
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB279#FFFFFF#000000##000000
##AFB2791.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBAD75
Deuteranopia (green-blind)
#BBAF7B
Tritanopia (blue-blind)
#B6ABA3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb279;
/* rgb */ color: rgb(175, 178, 121);
/* oklch */ color: oklch(74.7% 0.077 110.7);
Tailwind
colors: {
  custom: {
    50: '#c7c9a0',
    500: '#afb279',
    950: '#000000',
  },
}
SCSS
$custom: #afb279;
$custom-light: #c7c9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afb279",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 121
  },
  "hsl": {
    "h": 63.158,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.74728,
    "c": 0.07663,
    "h": 110.7
  },
  "luminance": 0.42335
}

Semantic roles & 50–950 ramp

primary
#AFB279
secondary
#B9B8CF
accent
#64C369
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB279

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

Preview Lab → · Contrast checker → · Palette generator →

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