#AFB73B#AFB73B

#AFB73B 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#AFB73B
RGBrgb(175, 183, 59)
HSLhsl(64, 51%, 47%)
HSVhsv(64, 68%, 72%)
CMYKcmyk(4.4%, 0%, 67.8%, 28.2%)
CIE-LABlab(71.76, -18.51, 59.22)
CIE-LCHlch(71.76, 62.04, 107.36°)
OKLaboklab(75.02% -0.0563 0.1328)
OKLCHoklch(75.02% 0.144 113)
XYZxyz(35.4031, 43.2975, 10.6291)
Luminance0.4330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB73B #433BB7
analogous
#B7813B #AFB73B #71B73B
triadic
#AFB73B #3BAFB7 #B73BAF
tetradic
#AFB73B #3BB781 #433BB7 #B73B71
square
#AFB73B #3BB781 #433BB7 #B73B71
split-complementary
#AFB73B #3B71B7 #813BB7
monochromatic
#565A1D #83892C #AFB73B #C6CD63 #D7DC91

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB73B#FFFFFF#000000##000000
##AFB73B1.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)
#C4AE28
Deuteranopia (green-blind)
#C4B144
Tritanopia (blue-blind)
#BBAC9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb73b;
/* rgb */ color: rgb(175, 183, 59);
/* oklch */ color: oklch(75.0% 0.144 113.0);
Tailwind
colors: {
  custom: {
    50: '#cacc78',
    500: '#afb73b',
    950: '#000000',
  },
}
SCSS
$custom: #afb73b;
$custom-light: #cacc78;
$custom-dark: #000000;
JSON
{
  "hex": "#afb73b",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 59
  },
  "hsl": {
    "h": 63.871,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75016,
    "c": 0.14429,
    "h": 113
  },
  "luminance": 0.43297
}

Semantic roles & 50–950 ramp

primary
#AFB73B
secondary
#8B87C6
accent
#4DDB56
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB73B

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

Preview Lab → · Contrast checker → · Palette generator →

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