#AFB73C#AFB73C

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

Color values

HEX#AFB73C
RGBrgb(175, 183, 60)
HSLhsl(64, 51%, 48%)
HSVhsv(64, 67%, 72%)
CMYKcmyk(4.4%, 0%, 67.2%, 28.2%)
CIE-LABlab(71.76, -18.45, 58.83)
CIE-LCHlch(71.76, 61.66, 107.41°)
OKLaboklab(75.02% -0.0561 0.1322)
OKLCHoklch(75.02% 0.144 113)
XYZxyz(35.4293, 43.3079, 10.7670)
Luminance0.4331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB73C #443CB7
analogous
#B7813C #AFB73C #72B73C
triadic
#AFB73C #3CAFB7 #B73CAF
tetradic
#AFB73C #3CB781 #443CB7 #B73C72
square
#AFB73C #3CB781 #443CB7 #B73C72
split-complementary
#AFB73C #3C72B7 #813CB7
monochromatic
#575B1E #83892D #AFB73C #C5CC64 #D7DB92

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB73C#FFFFFF#000000##000000
##AFB73C1.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)
#C4AE2A
Deuteranopia (green-blind)
#C4B145
Tritanopia (blue-blind)
#BAAC9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb73c;
/* rgb */ color: rgb(175, 183, 60);
/* oklch */ color: oklch(75.0% 0.144 113.0);
Tailwind
colors: {
  custom: {
    50: '#cacc79',
    500: '#afb73c',
    950: '#000000',
  },
}
SCSS
$custom: #afb73c;
$custom-light: #cacc79;
$custom-dark: #000000;
JSON
{
  "hex": "#afb73c",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 60
  },
  "hsl": {
    "h": 63.902,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.75024,
    "c": 0.14359,
    "h": 113
  },
  "luminance": 0.43307
}

Semantic roles & 50–950 ramp

primary
#AFB73C
secondary
#8C88C6
accent
#4EDA57
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB73C

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

Preview Lab → · Contrast checker → · Palette generator →

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