#AFA827#AFA827

#AFA827 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.141 H 106.2°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA827
RGBrgb(175, 168, 39)
HSLhsl(57, 64%, 42%)
HSVhsv(57, 78%, 69%)
CMYKcmyk(0%, 4%, 77.7%, 31.4%)
CIE-LABlab(67.48, -11.80, 62.22)
CIE-LCHlch(67.48, 63.33, 100.74°)
OKLaboklab(71.56% -0.0394 0.1356)
OKLCHoklch(71.56% 0.141 106.2)
XYZxyz(32.0494, 37.2669, 7.4241)
Luminance0.3727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA827 #272EAF
analogous
#AF6427 #AFA827 #72AF27
triadic
#AFA827 #27AFA8 #A827AF
tetradic
#AFA827 #27AF64 #272EAF #AF2772
square
#AFA827 #27AF64 #272EAF #AF2772
split-complementary
#AFA827 #2772AF #6427AF
monochromatic
#4B4811 #7D781C #AFA827 #D4CD3F #DFDA71

Accessibility & contrast

On white

2.48
#AFA827 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA827 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA827
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA827#FFFFFF#000000##000000
##AFA8271.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A203
Deuteranopia (green-blind)
#BAA732
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa827;
/* rgb */ color: rgb(175, 168, 39);
/* oklch */ color: oklch(71.6% 0.141 106.2);
Tailwind
colors: {
  custom: {
    50: '#cbc16d',
    500: '#afa827',
    950: '#000000',
  },
}
SCSS
$custom: #afa827;
$custom-light: #cbc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa827",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 39
  },
  "hsl": {
    "h": 56.912,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71559,
    "c": 0.14125,
    "h": 106.2
  },
  "luminance": 0.37266
}

Semantic roles & 50–950 ramp

primary
#AFA827
secondary
#6B70C6
accent
#4AE741
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA827

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

Preview Lab → · Contrast checker → · Palette generator →

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