#AFA12E#AFA12E

#AFA12E is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.1% C 0.131 H 102.2°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#AFA12E
RGBrgb(175, 161, 46)
HSLhsl(53, 58%, 43%)
HSVhsv(53, 74%, 69%)
CMYKcmyk(0%, 8%, 73.7%, 31.4%)
CIE-LABlab(65.59, -7.83, 58.07)
CIE-LCHlch(65.59, 58.60, 97.68°)
OKLaboklab(70.07% -0.0276 0.1281)
OKLCHoklch(70.07% 0.131 102.2)
XYZxyz(30.9186, 34.8023, 7.6731)
Luminance0.3480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA12E #2E3CAF
analogous
#AF602E #AFA12E #7CAF2E
triadic
#AFA12E #2EAFA1 #A12EAF
tetradic
#AFA12E #2EAF60 #2E3CAF #AF2E7C
square
#AFA12E #2EAF60 #2E3CAF #AF2E7C
split-complementary
#AFA12E #2E7CAF #602EAF
monochromatic
#4E4815 #7F7421 #AFA12E #D0C14B #DCD27B

Accessibility & contrast

On white

2.64
#AFA12E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#AFA12E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA12E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA12E#FFFFFF#000000##000000
##AFA12E1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C19
Deuteranopia (green-blind)
#B4A236
Tritanopia (blue-blind)
#BD958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa12e;
/* rgb */ color: rgb(175, 161, 46);
/* oklch */ color: oklch(70.1% 0.131 102.2);
Tailwind
colors: {
  custom: {
    50: '#cabc6f',
    500: '#afa12e',
    950: '#000000',
  },
}
SCSS
$custom: #afa12e;
$custom-light: #cabc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa12e",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 46
  },
  "hsl": {
    "h": 53.488,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.70073,
    "c": 0.13108,
    "h": 102.2
  },
  "luminance": 0.34801
}

Semantic roles & 50–950 ramp

primary
#AFA12E
secondary
#747DC5
accent
#57E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AFA12E

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

Preview Lab → · Contrast checker → · Palette generator →

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