#AFBA58#AFBA58

#AFBA58 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.0% C 0.124 H 114.7°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#AFBA58
RGBrgb(175, 186, 88)
HSLhsl(67, 42%, 54%)
HSVhsv(67, 53%, 73%)
CMYKcmyk(5.9%, 0%, 52.7%, 27.1%)
CIE-LABlab(72.85, -17.89, 47.75)
CIE-LCHlch(72.85, 50.99, 110.54°)
OKLaboklab(75.97% -0.0516 0.1122)
OKLCHoklch(75.97% 0.124 114.7)
XYZxyz(37.0002, 44.9369, 15.9552)
Luminance0.4494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA58 #6358BA
analogous
#BA9458 #AFBA58 #7EBA58
triadic
#AFBA58 #58AFBA #BA58AF
tetradic
#AFBA58 #58BA94 #6358BA #BA587E
square
#AFBA58 #58BA94 #6358BA #BA587E
split-complementary
#AFBA58 #587EBA #9458BA
monochromatic
#646B2C #8D973E #AFBA58 #C4CC83 #D8DEAF

Accessibility & contrast

On white

2.10
#AFBA58 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#AFBA58 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA58
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA58#FFFFFF#000000##000000
##AFBA581.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B24F
Deuteranopia (green-blind)
#C5B45D
Tritanopia (blue-blind)
#B9B1A4
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afba58;
/* rgb */ color: rgb(175, 186, 88);
/* oklch */ color: oklch(76.0% 0.124 114.7);
Tailwind
colors: {
  custom: {
    50: '#c9ce8a',
    500: '#afba58',
    950: '#000000',
  },
}
SCSS
$custom: #afba58;
$custom-light: #c9ce8a;
$custom-dark: #000000;
JSON
{
  "hex": "#afba58",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 88
  },
  "hsl": {
    "h": 66.735,
    "s": 41.525,
    "l": 53.725
  },
  "oklch": {
    "l": 0.75974,
    "c": 0.12352,
    "h": 114.7
  },
  "luminance": 0.44936
}

Semantic roles & 50–950 ramp

primary
#AFBA58
secondary
#A7A2CC
accent
#56D164
background
#FCFCF8
surface
#F8F9F0
border
#D1D2CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFBA58

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

Preview Lab → · Contrast checker → · Palette generator →

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