#AFB261#AFB261

#AFB261 is a light, moderate yellow. Relative luminance 0.418; OKLCH L 74.3% C 0.104 H 110.6°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#AFB261
RGBrgb(175, 178, 97)
HSLhsl(62, 34%, 54%)
HSVhsv(62, 46%, 70%)
CMYKcmyk(1.7%, 0%, 45.5%, 30.2%)
CIE-LABlab(70.75, -12.95, 40.83)
CIE-LCHlch(70.75, 42.84, 107.60°)
OKLaboklab(74.33% -0.0367 0.0978)
OKLCHoklch(74.33% 0.104 110.6)
XYZxyz(35.7579, 41.8185, 17.4951)
Luminance0.4182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB261 #6461B2
analogous
#B28D61 #AFB261 #87B261
triadic
#AFB261 #61AFB2 #B261AF
tetradic
#AFB261 #61B28D #6461B2 #B26187
square
#AFB261 #61B28D #6461B2 #B26187
split-complementary
#AFB261 #6187B2 #8D61B2
monochromatic
#656732 #8D9046 #AFB261 #C4C68A #D9DAB3

Accessibility & contrast

On white

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

On black

9.36
#AFB261 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB261
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB261#FFFFFF#000000##000000
##AFB2611.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAC5A
Deuteranopia (green-blind)
#BEAE65
Tritanopia (blue-blind)
#B9A99F
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb261;
/* rgb */ color: rgb(175, 178, 97);
/* oklch */ color: oklch(74.3% 0.104 110.6);
Tailwind
colors: {
  custom: {
    50: '#c8c88f',
    500: '#afb261',
    950: '#000000',
  },
}
SCSS
$custom: #afb261;
$custom-light: #c8c88f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb261",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 97
  },
  "hsl": {
    "h": 62.222,
    "s": 34.468,
    "l": 53.922
  },
  "oklch": {
    "l": 0.74329,
    "c": 0.10448,
    "h": 110.6
  },
  "luminance": 0.41818
}

Semantic roles & 50–950 ramp

primary
#AFB261
secondary
#A7A6C9
accent
#5DCB61
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB261

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

Preview Lab → · Contrast checker → · Palette generator →

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