#AFB73A#AFB73A

#AFB73A is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.0% C 0.145 H 113.0°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#AFB73A
RGBrgb(175, 183, 58)
HSLhsl(64, 52%, 47%)
HSVhsv(64, 68%, 72%)
CMYKcmyk(4.4%, 0%, 68.3%, 28.2%)
CIE-LABlab(71.75, -18.56, 59.60)
CIE-LCHlch(71.75, 62.42, 107.30°)
OKLaboklab(75.01% -0.0566 0.1335)
OKLCHoklch(75.01% 0.145 113)
XYZxyz(35.3774, 43.2872, 10.4938)
Luminance0.4329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB73A #423AB7
analogous
#B7813A #AFB73A #71B73A
triadic
#AFB73A #3AAFB7 #B73AAF
tetradic
#AFB73A #3AB781 #423AB7 #B73A71
square
#AFB73A #3AB781 #423AB7 #B73A71
split-complementary
#AFB73A #3A71B7 #813AB7
monochromatic
#565A1D #83892B #AFB73A #C6CD61 #D7DC90

Accessibility & contrast

On white

2.17
#AFB73A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#AFB73A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB73A
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB73A#FFFFFF#000000##000000
##AFB73A1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE27
Deuteranopia (green-blind)
#C5B143
Tritanopia (blue-blind)
#BBAC9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb73a;
/* rgb */ color: rgb(175, 183, 58);
/* oklch */ color: oklch(75.0% 0.145 113.0);
Tailwind
colors: {
  custom: {
    50: '#cacc78',
    500: '#afb73a',
    950: '#000000',
  },
}
SCSS
$custom: #afb73a;
$custom-light: #cacc78;
$custom-dark: #000000;
JSON
{
  "hex": "#afb73a",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 58
  },
  "hsl": {
    "h": 63.84,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.75008,
    "c": 0.14497,
    "h": 113
  },
  "luminance": 0.43286
}

Semantic roles & 50–950 ramp

primary
#AFB73A
secondary
#8A86C7
accent
#4CDB56
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB73A

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

Preview Lab → · Contrast checker → · Palette generator →

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