#AFB237#AFB237

#AFB237 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.9% C 0.142 H 110.8°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFB237
RGBrgb(175, 178, 55)
HSLhsl(61, 53%, 46%)
HSVhsv(61, 69%, 70%)
CMYKcmyk(1.7%, 0%, 69.1%, 30.2%)
CIE-LABlab(70.34, -16.20, 59.33)
CIE-LCHlch(70.34, 61.51, 105.27°)
OKLaboklab(73.87% -0.0503 0.1324)
OKLCHoklch(73.87% 0.142 110.8)
XYZxyz(34.2903, 41.2315, 9.7658)
Luminance0.4123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB237 #3A37B2
analogous
#B27737 #AFB237 #72B237
triadic
#AFB237 #37AFB2 #B237AF
tetradic
#AFB237 #37B277 #3A37B2 #B23772
square
#AFB237 #37B277 #3A37B2 #B23772
split-complementary
#AFB237 #3772B2 #7737B2
monochromatic
#53541A #818329 #AFB237 #C9CC5A #D9DB89

Accessibility & contrast

On white

2.27
#AFB237 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFB237 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB237
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB237#FFFFFF#000000##000000
##AFB2371.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA23
Deuteranopia (green-blind)
#C1AE40
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb237;
/* rgb */ color: rgb(175, 178, 55);
/* oklch */ color: oklch(73.9% 0.142 110.8);
Tailwind
colors: {
  custom: {
    50: '#cac876',
    500: '#afb237',
    950: '#000000',
  },
}
SCSS
$custom: #afb237;
$custom-light: #cac876;
$custom-dark: #000000;
JSON
{
  "hex": "#afb237",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 55
  },
  "hsl": {
    "h": 61.463,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73872,
    "c": 0.14164,
    "h": 110.8
  },
  "luminance": 0.41231
}

Semantic roles & 50–950 ramp

primary
#AFB237
secondary
#8280C5
accent
#4CDC4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB237

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

Preview Lab → · Contrast checker → · Palette generator →

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