#AFBF37#AFBF37

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

Color values

HEX#AFBF37
RGBrgb(175, 191, 55)
HSLhsl(67, 55%, 48%)
HSVhsv(67, 71%, 75%)
CMYKcmyk(8.4%, 0%, 71.2%, 25.1%)
CIE-LABlab(73.97, -22.70, 62.91)
CIE-LCHlch(73.97, 66.88, 109.84°)
OKLaboklab(76.78% -0.0684 0.14)
OKLCHoklch(76.78% 0.156 116)
XYZxyz(37.0005, 46.6519, 10.6693)
Luminance0.4665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF37 #4737BF
analogous
#BF8B37 #AFBF37 #6BBF37
triadic
#AFBF37 #37AFBF #BF37AF
tetradic
#AFBF37 #37BF8B #4737BF #BF376B
square
#AFBF37 #37BF8B #4737BF #BF376B
split-complementary
#AFBF37 #376BBF #8B37BF
monochromatic
#58601C #838F29 #AFBF37 #C4D262 #D6DF91

Accessibility & contrast

On white

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

On black

10.33
#AFBF37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF37
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF37#FFFFFF#000000##000000
##AFBF371.002.0310.3310.33
#FFFFFF2.031.0021.0021.00
#00000010.3321.001.001.00
##00000010.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afbf37;
/* rgb */ color: rgb(175, 191, 55);
/* oklch */ color: oklch(76.8% 0.156 116.0);
Tailwind
colors: {
  custom: {
    50: '#cad277',
    500: '#afbf37',
    950: '#000000',
  },
}
SCSS
$custom: #afbf37;
$custom-light: #cad277;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf37",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 55
  },
  "hsl": {
    "h": 67.059,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.76779,
    "c": 0.15578,
    "h": 116
  },
  "luminance": 0.46651
}

Semantic roles & 50–950 ramp

primary
#AFBF37
secondary
#8F88CA
accent
#49DF5B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF37

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

Preview Lab → · Contrast checker → · Palette generator →

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