#AFA727#AFA727

#AFA727 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.140 H 105.7°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA727
RGBrgb(175, 167, 39)
HSLhsl(56, 64%, 42%)
HSVhsv(56, 78%, 69%)
CMYKcmyk(0%, 4.6%, 77.7%, 31.4%)
CIE-LABlab(67.20, -11.28, 61.97)
CIE-LCHlch(67.20, 62.99, 100.32°)
OKLaboklab(71.34% -0.038 0.1351)
OKLCHoklch(71.34% 0.14 105.7)
XYZxyz(31.8655, 36.8991, 7.3628)
Luminance0.3690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA727 #272FAF
analogous
#AF6327 #AFA727 #73AF27
triadic
#AFA727 #27AFA7 #A727AF
tetradic
#AFA727 #27AF63 #272FAF #AF2773
square
#AFA727 #27AF63 #272FAF #AF2773
split-complementary
#AFA727 #2773AF #6327AF
monochromatic
#4B4711 #7D771C #AFA727 #D4CB3F #DFD971

Accessibility & contrast

On white

2.51
#AFA727 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#AFA727 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA727
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA727#FFFFFF#000000##000000
##AFA7271.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A104
Deuteranopia (green-blind)
#B9A631
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa727;
/* rgb */ color: rgb(175, 167, 39);
/* oklch */ color: oklch(71.3% 0.140 105.7);
Tailwind
colors: {
  custom: {
    50: '#cbc06c',
    500: '#afa727',
    950: '#000000',
  },
}
SCSS
$custom: #afa727;
$custom-light: #cbc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa727",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 39
  },
  "hsl": {
    "h": 56.471,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71339,
    "c": 0.14034,
    "h": 105.7
  },
  "luminance": 0.36898
}

Semantic roles & 50–950 ramp

primary
#AFA727
secondary
#6B71C6
accent
#4BE741
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #AFA727

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

Preview Lab → · Contrast checker → · Palette generator →

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