#AFB337#AFB337

#AFB337 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.143 H 111.2°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFB337
RGBrgb(175, 179, 55)
HSLhsl(62, 53%, 46%)
HSVhsv(62, 69%, 70%)
CMYKcmyk(2.2%, 0%, 69.3%, 29.8%)
CIE-LABlab(70.62, -16.71, 59.61)
CIE-LCHlch(70.62, 61.91, 105.66°)
OKLaboklab(74.09% -0.0517 0.133)
OKLCHoklch(74.09% 0.143 111.2)
XYZxyz(34.4900, 41.6309, 9.8324)
Luminance0.4163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB337 #3B37B3
analogous
#B37937 #AFB337 #71B337
triadic
#AFB337 #37AFB3 #B337AF
tetradic
#AFB337 #37B379 #3B37B3 #B33771
square
#AFB337 #37B379 #3B37B3 #B33771
split-complementary
#AFB337 #3771B3 #7937B3
monochromatic
#53551A #818429 #AFB337 #C9CD5B #D8DB8A

Accessibility & contrast

On white

2.25
#AFB337 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFB337 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB337
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB337#FFFFFF#000000##000000
##AFB3371.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB23
Deuteranopia (green-blind)
#C2AE40
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb337;
/* rgb */ color: rgb(175, 179, 55);
/* oklch */ color: oklch(74.1% 0.143 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac976',
    500: '#afb337',
    950: '#000000',
  },
}
SCSS
$custom: #afb337;
$custom-light: #cac976;
$custom-dark: #000000;
JSON
{
  "hex": "#afb337",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 55
  },
  "hsl": {
    "h": 61.935,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74094,
    "c": 0.1427,
    "h": 111.2
  },
  "luminance": 0.4163
}

Semantic roles & 50–950 ramp

primary
#AFB337
secondary
#8381C5
accent
#4BDC50
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB337

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

Preview Lab → · Contrast checker → · Palette generator →

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