#AFB74B#AFB74B

#AFB74B is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.2% C 0.132 H 113.1°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#AFB74B
RGBrgb(175, 183, 75)
HSLhsl(64, 43%, 51%)
HSVhsv(64, 59%, 72%)
CMYKcmyk(4.4%, 0%, 59%, 28.2%)
CIE-LABlab(71.89, -17.45, 52.64)
CIE-LCHlch(71.89, 55.46, 108.33°)
OKLaboklab(75.16% -0.0517 0.1213)
OKLCHoklch(75.16% 0.132 113.1)
XYZxyz(35.8835, 43.4896, 13.1593)
Luminance0.4349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB74B #534BB7
analogous
#B7894B #AFB74B #79B74B
triadic
#AFB74B #4BAFB7 #B74BAF
tetradic
#AFB74B #4BB789 #534BB7 #B74B79
square
#AFB74B #4BB789 #534BB7 #B74B79
split-complementary
#AFB74B #4B79B7 #894BB7
monochromatic
#5D6127 #868D38 #AFB74B #C2C877 #D6DAA2

Accessibility & contrast

On white

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

On black

9.70
#AFB74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB74B
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB74B#FFFFFF#000000##000000
##AFB74B1.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF3F
Deuteranopia (green-blind)
#C4B152
Tritanopia (blue-blind)
#BAADA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb74b;
/* rgb */ color: rgb(175, 183, 75);
/* oklch */ color: oklch(75.2% 0.132 113.1);
Tailwind
colors: {
  custom: {
    50: '#c9cc81',
    500: '#afb74b',
    950: '#000000',
  },
}
SCSS
$custom: #afb74b;
$custom-light: #c9cc81;
$custom-dark: #000000;
JSON
{
  "hex": "#afb74b",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 75
  },
  "hsl": {
    "h": 64.444,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.75161,
    "c": 0.13182,
    "h": 113.1
  },
  "luminance": 0.43489
}

Semantic roles & 50–950 ramp

primary
#AFB74B
secondary
#9A97C7
accent
#55D35E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB74B

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

Preview Lab → · Contrast checker → · Palette generator →

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