#AFA627#AFA627

#AFA627 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.139 H 105.2°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA627
RGBrgb(175, 166, 39)
HSLhsl(56, 64%, 42%)
HSVhsv(56, 78%, 69%)
CMYKcmyk(0%, 5.1%, 77.7%, 31.4%)
CIE-LABlab(66.93, -10.76, 61.72)
CIE-LCHlch(66.93, 62.65, 99.89°)
OKLaboklab(71.12% -0.0365 0.1346)
OKLCHoklch(71.12% 0.139 105.2)
XYZxyz(31.6830, 36.5341, 7.3020)
Luminance0.3653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA627 #2730AF
analogous
#AF6227 #AFA627 #74AF27
triadic
#AFA627 #27AFA6 #A627AF
tetradic
#AFA627 #27AF62 #2730AF #AF2774
square
#AFA627 #27AF62 #2730AF #AF2774
split-complementary
#AFA627 #2774AF #6227AF
monochromatic
#4B4711 #7D771C #AFA627 #D4CA3F #DFD871

Accessibility & contrast

On white

2.53
#AFA627 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA627 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA627
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA627#FFFFFF#000000##000000
##AFA6271.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A004
Deuteranopia (green-blind)
#B8A531
Tritanopia (blue-blind)
#BC9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa627;
/* rgb */ color: rgb(175, 166, 39);
/* oklch */ color: oklch(71.1% 0.139 105.2);
Tailwind
colors: {
  custom: {
    50: '#cbc06c',
    500: '#afa627',
    950: '#000000',
  },
}
SCSS
$custom: #afa627;
$custom-light: #cbc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa627",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 39
  },
  "hsl": {
    "h": 56.029,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.7112,
    "c": 0.13943,
    "h": 105.2
  },
  "luminance": 0.36533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA627

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

Preview Lab → · Contrast checker → · Palette generator →

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