#AFB43A#AFB43A

#AFB43A is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.3% C 0.142 H 111.7°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#AFB43A
RGBrgb(175, 180, 58)
HSLhsl(62, 51%, 47%)
HSVhsv(62, 68%, 71%)
CMYKcmyk(2.8%, 0%, 67.8%, 29.4%)
CIE-LABlab(70.91, -17.05, 58.75)
CIE-LCHlch(70.91, 61.18, 106.18°)
OKLaboklab(74.34% -0.0523 0.1317)
OKLCHoklch(74.34% 0.142 111.7)
XYZxyz(34.7652, 42.0628, 10.2898)
Luminance0.4206 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB43A #3F3AB4
analogous
#B47C3A #AFB43A #72B43A
triadic
#AFB43A #3AAFB4 #B43AAF
tetradic
#AFB43A #3AB47C #3F3AB4 #B43A72
square
#AFB43A #3AB47C #3F3AB4 #B43A72
split-complementary
#AFB43A #3A72B4 #7C3AB4
monochromatic
#55571C #82862B #AFB43A #C7CC60 #D7DB8E

Accessibility & contrast

On white

2.23
#AFB43A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#AFB43A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB43A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB43A#FFFFFF#000000##000000
##AFB43A1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC28
Deuteranopia (green-blind)
#C2AF43
Tritanopia (blue-blind)
#BBA99C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb43a;
/* rgb */ color: rgb(175, 180, 58);
/* oklch */ color: oklch(74.3% 0.142 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca77',
    500: '#afb43a',
    950: '#000000',
  },
}
SCSS
$custom: #afb43a;
$custom-light: #caca77;
$custom-dark: #000000;
JSON
{
  "hex": "#afb43a",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 58
  },
  "hsl": {
    "h": 62.459,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.74339,
    "c": 0.14172,
    "h": 111.7
  },
  "luminance": 0.42062
}

Semantic roles & 50–950 ramp

primary
#AFB43A
secondary
#8785C5
accent
#4DDB53
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB43A

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

Preview Lab → · Contrast checker → · Palette generator →

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