#AFA83D#AFA83D

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

Color values

HEX#AFA83D
RGBrgb(175, 168, 61)
HSLhsl(56, 48%, 46%)
HSVhsv(56, 65%, 69%)
CMYKcmyk(0%, 4%, 65.1%, 31.4%)
CIE-LABlab(67.62, -10.70, 54.14)
CIE-LCHlch(67.62, 55.19, 101.18°)
OKLaboklab(71.72% -0.0341 0.1225)
OKLCHoklch(71.72% 0.127 105.6)
XYZxyz(32.5253, 37.4573, 9.9307)
Luminance0.3746 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA83D #3D44AF
analogous
#AF6F3D #AFA83D #7DAF3D
triadic
#AFA83D #3DAFA8 #A83DAF
tetradic
#AFA83D #3DAF6F #3D44AF #AF3D7D
square
#AFA83D #3DAF6F #3D44AF #AF3D7D
split-complementary
#AFA83D #3D7DAF #6F3DAF
monochromatic
#54511D #827C2D #AFA83D #C8C261 #D8D38F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA83D#FFFFFF#000000##000000
##AFA83D1.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)
#B6A22F
Deuteranopia (green-blind)
#B9A743
Tritanopia (blue-blind)
#BB9D92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa83d;
/* rgb */ color: rgb(175, 168, 61);
/* oklch */ color: oklch(71.7% 0.127 105.6);
Tailwind
colors: {
  custom: {
    50: '#cac178',
    500: '#afa83d',
    950: '#000000',
  },
}
SCSS
$custom: #afa83d;
$custom-light: #cac178;
$custom-dark: #000000;
JSON
{
  "hex": "#afa83d",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 61
  },
  "hsl": {
    "h": 56.316,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71717,
    "c": 0.12713,
    "h": 105.6
  },
  "luminance": 0.37456
}

Semantic roles & 50–950 ramp

primary
#AFA83D
secondary
#8589C3
accent
#58D850
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA83D

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

Preview Lab → · Contrast checker → · Palette generator →

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