#AFA237#AFA237

#AFA237 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.126 H 102.3°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA237
RGBrgb(175, 162, 55)
HSLhsl(54, 52%, 45%)
HSVhsv(54, 69%, 69%)
CMYKcmyk(0%, 7.4%, 68.6%, 31.4%)
CIE-LABlab(65.93, -7.90, 54.90)
CIE-LCHlch(65.93, 55.46, 98.18°)
OKLaboklab(70.36% -0.0269 0.1231)
OKLCHoklch(70.36% 0.126 102.3)
XYZxyz(31.2904, 35.2318, 8.7659)
Luminance0.3523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA237 #3744AF
analogous
#AF6637 #AFA237 #80AF37
triadic
#AFA237 #37AFA2 #A237AF
tetradic
#AFA237 #37AF66 #3744AF #AF3780
square
#AFA237 #37AF66 #3744AF #AF3780
split-complementary
#AFA237 #3780AF #6637AF
monochromatic
#524C1A #807728 #AFA237 #CBBE59 #D9D087

Accessibility & contrast

On white

2.61
#AFA237 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#AFA237 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA237
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA237#FFFFFF#000000##000000
##AFA2371.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D28
Deuteranopia (green-blind)
#B5A33E
Tritanopia (blue-blind)
#BC978C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa237;
/* rgb */ color: rgb(175, 162, 55);
/* oklch */ color: oklch(70.4% 0.126 102.3);
Tailwind
colors: {
  custom: {
    50: '#cabd74',
    500: '#afa237',
    950: '#000000',
  },
}
SCSS
$custom: #afa237;
$custom-light: #cabd74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa237",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 55
  },
  "hsl": {
    "h": 53.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70358,
    "c": 0.12597,
    "h": 102.3
  },
  "luminance": 0.3523
}

Semantic roles & 50–950 ramp

primary
#AFA237
secondary
#7F86C3
accent
#5CDC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA237

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

Preview Lab → · Contrast checker → · Palette generator →

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