#AFB53B#AFB53B

#AFB53B is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.6% C 0.142 H 112.1°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#AFB53B
RGBrgb(175, 181, 59)
HSLhsl(63, 51%, 47%)
HSVhsv(63, 67%, 71%)
CMYKcmyk(3.3%, 0%, 67.4%, 29%)
CIE-LABlab(71.20, -17.50, 58.65)
CIE-LCHlch(71.20, 61.21, 106.61°)
OKLaboklab(74.57% -0.0535 0.1317)
OKLCHoklch(74.57% 0.142 112.1)
XYZxyz(34.9935, 42.4783, 10.4926)
Luminance0.4248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB53B #413BB5
analogous
#B57E3B #AFB53B #72B53B
triadic
#AFB53B #3BAFB5 #B53BAF
tetradic
#AFB53B #3BB57E #413BB5 #B53B72
square
#AFB53B #3BB57E #413BB5 #B53B72
split-complementary
#AFB53B #3B72B5 #7E3BB5
monochromatic
#56591D #82872C #AFB53B #C6CC62 #D7DB90

Accessibility & contrast

On white

2.21
#AFB53B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#AFB53B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB53B
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB53B#FFFFFF#000000##000000
##AFB53B1.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD29
Deuteranopia (green-blind)
#C3B044
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb53b;
/* rgb */ color: rgb(175, 181, 59);
/* oklch */ color: oklch(74.6% 0.142 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb78',
    500: '#afb53b',
    950: '#000000',
  },
}
SCSS
$custom: #afb53b;
$custom-light: #cacb78;
$custom-dark: #000000;
JSON
{
  "hex": "#afb53b",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 59
  },
  "hsl": {
    "h": 62.951,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.7457,
    "c": 0.14211,
    "h": 112.1
  },
  "luminance": 0.42477
}

Semantic roles & 50–950 ramp

primary
#AFB53B
secondary
#8986C6
accent
#4DDA54
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB53B

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

Preview Lab → · Contrast checker → · Palette generator →

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