#AFBF40#AFBF40

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

Color values

HEX#AFBF40
RGBrgb(175, 191, 64)
HSLhsl(68, 50%, 50%)
HSVhsv(68, 66%, 75%)
CMYKcmyk(8.4%, 0%, 66.5%, 25.1%)
CIE-LABlab(74.03, -22.19, 59.57)
CIE-LCHlch(74.03, 63.57, 110.43°)
OKLaboklab(76.85% -0.0661 0.1344)
OKLCHoklch(76.85% 0.15 116.2)
XYZxyz(37.2363, 46.7462, 11.9108)
Luminance0.4675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF40 #5040BF
analogous
#BF8F40 #AFBF40 #70BF40
triadic
#AFBF40 #40AFBF #BF40AF
tetradic
#AFBF40 #40BF8F #5040BF #BF4070
square
#AFBF40 #40BF8F #5040BF #BF4070
split-complementary
#AFBF40 #4070BF #8F40BF
monochromatic
#5B6321 #859131 #AFBF40 #C2CE6E #D5DE9C

Accessibility & contrast

On white

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

On black

10.35
#AFBF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF40
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF40#FFFFFF#000000##000000
##AFBF401.002.0310.3510.35
#FFFFFF2.031.0021.0021.00
#00000010.3521.001.001.00
##00000010.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afbf40;
/* rgb */ color: rgb(175, 191, 64);
/* oklch */ color: oklch(76.8% 0.150 116.2);
Tailwind
colors: {
  custom: {
    50: '#cad27c',
    500: '#afbf40',
    950: '#000000',
  },
}
SCSS
$custom: #afbf40;
$custom-light: #cad27c;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf40",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 67.559,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.76847,
    "c": 0.14975,
    "h": 116.2
  },
  "luminance": 0.46746
}

Semantic roles & 50–950 ramp

primary
#AFBF40
secondary
#9891CA
accent
#4ED960
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBF40

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

Preview Lab → · Contrast checker → · Palette generator →

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