#AFBA50#AFBA50

#AFBA50 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.9% C 0.131 H 114.5°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#AFBA50
RGBrgb(175, 186, 80)
HSLhsl(66, 43%, 52%)
HSVhsv(66, 57%, 73%)
CMYKcmyk(5.9%, 0%, 57%, 27.1%)
CIE-LABlab(72.77, -18.57, 51.38)
CIE-LCHlch(72.77, 54.63, 109.87°)
OKLaboklab(75.88% -0.0543 0.1192)
OKLCHoklch(75.88% 0.131 114.5)
XYZxyz(36.6868, 44.8115, 14.3047)
Luminance0.4481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA50 #5B50BA
analogous
#BA9050 #AFBA50 #7ABA50
triadic
#AFBA50 #50AFBA #BA50AF
tetradic
#AFBA50 #50BA90 #5B50BA #BA507A
square
#AFBA50 #50BA90 #5B50BA #BA507A
split-complementary
#AFBA50 #507ABA #9050BA
monochromatic
#616729 #8A933A #AFBA50 #C3CB7C #D7DDA8

Accessibility & contrast

On white

2.11
#AFBA50 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.96
#AFBA50 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA50
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA50#FFFFFF#000000##000000
##AFBA501.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B245
Deuteranopia (green-blind)
#C6B456
Tritanopia (blue-blind)
#B9B0A3
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afba50;
/* rgb */ color: rgb(175, 186, 80);
/* oklch */ color: oklch(75.9% 0.131 114.5);
Tailwind
colors: {
  custom: {
    50: '#c9ce85',
    500: '#afba50',
    950: '#000000',
  },
}
SCSS
$custom: #afba50;
$custom-light: #c9ce85;
$custom-dark: #000000;
JSON
{
  "hex": "#afba50",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 80
  },
  "hsl": {
    "h": 66.226,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75881,
    "c": 0.13097,
    "h": 114.5
  },
  "luminance": 0.44811
}

Semantic roles & 50–950 ramp

primary
#AFBA50
secondary
#A19CCA
accent
#55D362
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBA50

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

Preview Lab → · Contrast checker → · Palette generator →

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