#AFA236#AFA236

#AFA236 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.127 H 102.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AFA236
RGBrgb(175, 162, 54)
HSLhsl(54, 53%, 45%)
HSVhsv(54, 69%, 69%)
CMYKcmyk(0%, 7.4%, 69.1%, 31.4%)
CIE-LABlab(65.92, -7.95, 55.30)
CIE-LCHlch(65.92, 55.87, 98.18°)
OKLaboklab(70.35% -0.0271 0.1237)
OKLCHoklch(70.35% 0.127 102.4)
XYZxyz(31.2667, 35.2223, 8.6409)
Luminance0.3522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA236 #3643AF
analogous
#AF6636 #AFA236 #7FAF36
triadic
#AFA236 #36AFA2 #A236AF
tetradic
#AFA236 #36AF66 #3643AF #AF367F
square
#AFA236 #36AF66 #3643AF #AF367F
split-complementary
#AFA236 #367FAF #6636AF
monochromatic
#514B19 #807728 #AFA236 #CBBF57 #DAD186

Accessibility & contrast

On white

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

On black

8.04
#AFA236 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA236
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA236#FFFFFF#000000##000000
##AFA2361.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa236;
/* rgb */ color: rgb(175, 162, 54);
/* oklch */ color: oklch(70.3% 0.127 102.4);
Tailwind
colors: {
  custom: {
    50: '#cabd73',
    500: '#afa236',
    950: '#000000',
  },
}
SCSS
$custom: #afa236;
$custom-light: #cabd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afa236",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 54
  },
  "hsl": {
    "h": 53.554,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.7035,
    "c": 0.12668,
    "h": 102.4
  },
  "luminance": 0.35221
}

Semantic roles & 50–950 ramp

primary
#AFA236
secondary
#7D85C3
accent
#5BDC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA236

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

Preview Lab → · Contrast checker → · Palette generator →

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