#AFB43B#AFB43B

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

Color values

HEX#AFB43B
RGBrgb(175, 180, 59)
HSLhsl(62, 51%, 47%)
HSVhsv(62, 67%, 71%)
CMYKcmyk(2.8%, 0%, 67.2%, 29.4%)
CIE-LABlab(70.92, -16.99, 58.37)
CIE-LCHlch(70.92, 60.79, 106.23°)
OKLaboklab(74.35% -0.0521 0.1311)
OKLCHoklch(74.35% 0.141 111.7)
XYZxyz(34.7909, 42.0731, 10.4250)
Luminance0.4207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB43B #403BB4
analogous
#B47D3B #AFB43B #73B43B
triadic
#AFB43B #3BAFB4 #B43BAF
tetradic
#AFB43B #3BB47D #403BB4 #B43B73
square
#AFB43B #3BB47D #403BB4 #B43B73
split-complementary
#AFB43B #3B73B4 #7D3BB4
monochromatic
#55581D #82862C #AFB43B #C7CB61 #D7DA8F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB43B#FFFFFF#000000##000000
##AFB43B1.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)
#C2AC29
Deuteranopia (green-blind)
#C2AF43
Tritanopia (blue-blind)
#BBA99C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb43b;
/* rgb */ color: rgb(175, 180, 59);
/* oklch */ color: oklch(74.3% 0.141 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca78',
    500: '#afb43b',
    950: '#000000',
  },
}
SCSS
$custom: #afb43b;
$custom-light: #caca78;
$custom-dark: #000000;
JSON
{
  "hex": "#afb43b",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 59
  },
  "hsl": {
    "h": 62.479,
    "s": 50.628,
    "l": 46.863
  },
  "oklch": {
    "l": 0.74347,
    "c": 0.14102,
    "h": 111.7
  },
  "luminance": 0.42072
}

Semantic roles & 50–950 ramp

primary
#AFB43B
secondary
#8886C5
accent
#4EDA53
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB43B

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

Preview Lab → · Contrast checker → · Palette generator →

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