#AFA927#AFA927

#AFA927 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.142 H 106.7°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AFA927
RGBrgb(175, 169, 39)
HSLhsl(57, 64%, 42%)
HSVhsv(57, 78%, 69%)
CMYKcmyk(0%, 3.4%, 77.7%, 31.4%)
CIE-LABlab(67.75, -12.32, 62.47)
CIE-LCHlch(67.75, 63.67, 101.16°)
OKLaboklab(71.78% -0.0409 0.1362)
OKLCHoklch(71.78% 0.142 106.7)
XYZxyz(32.2347, 37.6376, 7.4859)
Luminance0.3764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA927 #272DAF
analogous
#AF6527 #AFA927 #71AF27
triadic
#AFA927 #27AFA9 #A927AF
tetradic
#AFA927 #27AF65 #272DAF #AF2771
square
#AFA927 #27AF65 #272DAF #AF2771
split-complementary
#AFA927 #2771AF #6527AF
monochromatic
#4B4811 #7D791C #AFA927 #D4CE3F #DFDA71

Accessibility & contrast

On white

2.46
#AFA927 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#AFA927 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA927
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA927#FFFFFF#000000##000000
##AFA9271.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A202
Deuteranopia (green-blind)
#BBA732
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa927;
/* rgb */ color: rgb(175, 169, 39);
/* oklch */ color: oklch(71.8% 0.142 106.7);
Tailwind
colors: {
  custom: {
    50: '#cbc26d',
    500: '#afa927',
    950: '#000000',
  },
}
SCSS
$custom: #afa927;
$custom-light: #cbc26d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa927",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 39
  },
  "hsl": {
    "h": 57.353,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71779,
    "c": 0.14217,
    "h": 106.7
  },
  "luminance": 0.37636
}

Semantic roles & 50–950 ramp

primary
#AFA927
secondary
#6B6FC6
accent
#49E741
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA927

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

Preview Lab → · Contrast checker → · Palette generator →

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