#AFBF3A#AFBF3A

#AFBF3A is a light, vivid yellow. Relative luminance 0.467; OKLCH L 76.8% C 0.154 H 116.1°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#AFBF3A
RGBrgb(175, 191, 58)
HSLhsl(67, 53%, 49%)
HSVhsv(67, 70%, 75%)
CMYKcmyk(8.4%, 0%, 69.6%, 25.1%)
CIE-LABlab(73.99, -22.54, 61.83)
CIE-LCHlch(73.99, 65.81, 110.03°)
OKLaboklab(76.8% -0.0677 0.1382)
OKLCHoklch(76.8% 0.154 116.1)
XYZxyz(37.0746, 46.6816, 11.0595)
Luminance0.4668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF3A #4A3ABF
analogous
#BF8D3A #AFBF3A #6DBF3A
triadic
#AFBF3A #3AAFBF #BF3AAF
tetradic
#AFBF3A #3ABF8D #4A3ABF #BF3A6D
square
#AFBF3A #3ABF8D #4A3ABF #BF3A6D
split-complementary
#AFBF3A #3A6DBF #8D3ABF
monochromatic
#59611D #84902C #AFBF3A #C4D066 #D6DF95

Accessibility & contrast

On white

2.03
#AFBF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#AFBF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF3A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF3A#FFFFFF#000000##000000
##AFBF3A1.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB524
Deuteranopia (green-blind)
#CBB744
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf3a;
/* rgb */ color: rgb(175, 191, 58);
/* oklch */ color: oklch(76.8% 0.154 116.1);
Tailwind
colors: {
  custom: {
    50: '#cad278',
    500: '#afbf3a',
    950: '#000000',
  },
}
SCSS
$custom: #afbf3a;
$custom-light: #cad278;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf3a",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 58
  },
  "hsl": {
    "h": 67.218,
    "s": 53.414,
    "l": 48.824
  },
  "oklch": {
    "l": 0.768,
    "c": 0.15386,
    "h": 116.1
  },
  "luminance": 0.46681
}

Semantic roles & 50–950 ramp

primary
#AFBF3A
secondary
#928BCA
accent
#4BDD5D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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