#AFB950#AFB950

#AFB950 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.7% C 0.130 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#AFB950
RGBrgb(175, 185, 80)
HSLhsl(66, 43%, 52%)
HSVhsv(66, 57%, 73%)
CMYKcmyk(5.4%, 0%, 56.8%, 27.5%)
CIE-LABlab(72.49, -18.07, 51.06)
CIE-LCHlch(72.49, 54.16, 109.48°)
OKLaboklab(75.66% -0.0529 0.1185)
OKLCHoklch(75.66% 0.13 114.1)
XYZxyz(36.4769, 44.3917, 14.2347)
Luminance0.4439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB950 #5A50B9
analogous
#B98E50 #AFB950 #7BB950
triadic
#AFB950 #50AFB9 #B950AF
tetradic
#AFB950 #50B98E #5A50B9 #B9507B
square
#AFB950 #50B98E #5A50B9 #B9507B
split-complementary
#AFB950 #507BB9 #8E50B9
monochromatic
#606629 #89923A #AFB950 #C3CA7C #D7DCA7

Accessibility & contrast

On white

2.13
#AFB950 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#AFB950 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB950
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB950#FFFFFF#000000##000000
##AFB9501.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B145
Deuteranopia (green-blind)
#C5B356
Tritanopia (blue-blind)
#B9AFA2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afb950;
/* rgb */ color: rgb(175, 185, 80);
/* oklch */ color: oklch(75.7% 0.130 114.1);
Tailwind
colors: {
  custom: {
    50: '#c9cd85',
    500: '#afb950',
    950: '#000000',
  },
}
SCSS
$custom: #afb950;
$custom-light: #c9cd85;
$custom-dark: #000000;
JSON
{
  "hex": "#afb950",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 80
  },
  "hsl": {
    "h": 65.714,
    "s": 42.857,
    "l": 51.961
  },
  "oklch": {
    "l": 0.75659,
    "c": 0.12978,
    "h": 114.1
  },
  "luminance": 0.44391
}

Semantic roles & 50–950 ramp

primary
#AFB950
secondary
#A09BC9
accent
#55D361
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB950

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

Preview Lab → · Contrast checker → · Palette generator →

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