#AFA83E#AFA83E

#AFA83E is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.7% C 0.126 H 105.5°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#AFA83E
RGBrgb(175, 168, 62)
HSLhsl(56, 48%, 46%)
HSVhsv(56, 65%, 69%)
CMYKcmyk(0%, 4%, 64.6%, 31.4%)
CIE-LABlab(67.63, -10.63, 53.73)
CIE-LCHlch(67.63, 54.77, 101.20°)
OKLaboklab(71.73% -0.0338 0.1217)
OKLCHoklch(71.73% 0.126 105.5)
XYZxyz(32.5525, 37.4682, 10.0738)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA83E #3E45AF
analogous
#AF703E #AFA83E #7EAF3E
triadic
#AFA83E #3EAFA8 #A83EAF
tetradic
#AFA83E #3EAF70 #3E45AF #AF3E7E
square
#AFA83E #3EAF70 #3E45AF #AF3E7E
split-complementary
#AFA83E #3E7EAF #703EAF
monochromatic
#55511E #827D2E #AFA83E #C8C163 #D8D390

Accessibility & contrast

On white

2.47
#AFA83E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#AFA83E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA83E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA83E#FFFFFF#000000##000000
##AFA83E1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A231
Deuteranopia (green-blind)
#B9A744
Tritanopia (blue-blind)
#BB9D92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa83e;
/* rgb */ color: rgb(175, 168, 62);
/* oklch */ color: oklch(71.7% 0.126 105.5);
Tailwind
colors: {
  custom: {
    50: '#cac179',
    500: '#afa83e',
    950: '#000000',
  },
}
SCSS
$custom: #afa83e;
$custom-light: #cac179;
$custom-dark: #000000;
JSON
{
  "hex": "#afa83e",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 62
  },
  "hsl": {
    "h": 56.283,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71726,
    "c": 0.12636,
    "h": 105.5
  },
  "luminance": 0.37467
}

Semantic roles & 50–950 ramp

primary
#AFA83E
secondary
#868AC3
accent
#59D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA83E

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

Preview Lab → · Contrast checker → · Palette generator →

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