#AFB178#AFB178

#AFB178 is a light, moderate yellow. Relative luminance 0.419; OKLCH L 74.5% C 0.077 H 109.8°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#AFB178
RGBrgb(175, 177, 120)
HSLhsl(62, 27%, 58%)
HSVhsv(62, 32%, 69%)
CMYKcmyk(1.1%, 0%, 32.2%, 30.6%)
CIE-LABlab(70.81, -9.79, 29.00)
CIE-LCHlch(70.81, 30.61, 108.66°)
OKLaboklab(74.49% -0.026 0.072)
OKLCHoklch(74.49% 0.077 109.8)
XYZxyz(36.7917, 41.9149, 23.9179)
Luminance0.4191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB178 #7A78B1
analogous
#B19678 #AFB178 #92B178
triadic
#AFB178 #78AFB1 #B178AF
tetradic
#AFB178 #78B196 #7A78B1 #B17892
square
#AFB178 #78B196 #7A78B1 #B17892
split-complementary
#AFB178 #7892B1 #9678B1
monochromatic
#6D6F40 #939556 #AFB178 #C6C79F #DDDEC6

Accessibility & contrast

On white

2.24
#AFB178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#AFB178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB178
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB178#FFFFFF#000000##000000
##AFB1781.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAAC74
Deuteranopia (green-blind)
#BAAE7A
Tritanopia (blue-blind)
#B7AAA2
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb178;
/* rgb */ color: rgb(175, 177, 120);
/* oklch */ color: oklch(74.5% 0.077 109.8);
Tailwind
colors: {
  custom: {
    50: '#c7c89f',
    500: '#afb178',
    950: '#000000',
  },
}
SCSS
$custom: #afb178;
$custom-light: #c7c89f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb178",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 120
  },
  "hsl": {
    "h": 62.105,
    "s": 26.761,
    "l": 58.235
  },
  "oklch": {
    "l": 0.74493,
    "c": 0.07656,
    "h": 109.8
  },
  "luminance": 0.41914
}

Semantic roles & 50–950 ramp

primary
#AFB178
secondary
#B8B7CE
accent
#65C368
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB178

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

Preview Lab → · Contrast checker → · Palette generator →

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