#AFB540#AFB540

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

Color values

HEX#AFB540
RGBrgb(175, 181, 64)
HSLhsl(63, 48%, 48%)
HSVhsv(63, 65%, 71%)
CMYKcmyk(3.3%, 0%, 64.6%, 29%)
CIE-LABlab(71.24, -17.20, 56.67)
CIE-LCHlch(71.24, 59.23, 106.88°)
OKLaboklab(74.61% -0.0521 0.1283)
OKLCHoklch(74.61% 0.138 112.1)
XYZxyz(35.1295, 42.5327, 11.2086)
Luminance0.4253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB540 #4640B5
analogous
#B58040 #AFB540 #74B540
triadic
#AFB540 #40AFB5 #B540AF
tetradic
#AFB540 #40B580 #4640B5 #B54074
square
#AFB540 #40B580 #4640B5 #B54074
split-complementary
#AFB540 #4074B5 #8040B5
monochromatic
#585B20 #838830 #AFB540 #C5CA68 #D6DA96

Accessibility & contrast

On white

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

On black

9.51
#AFB540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB540
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB540#FFFFFF#000000##000000
##AFB5401.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD30
Deuteranopia (green-blind)
#C3B048
Tritanopia (blue-blind)
#BAAA9D
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb540;
/* rgb */ color: rgb(175, 181, 64);
/* oklch */ color: oklch(74.6% 0.138 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb7b',
    500: '#afb540',
    950: '#000000',
  },
}
SCSS
$custom: #afb540;
$custom-light: #cacb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb540",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 63.077,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.74612,
    "c": 0.13846,
    "h": 112.1
  },
  "luminance": 0.42532
}

Semantic roles & 50–950 ramp

primary
#AFB540
secondary
#8E8BC5
accent
#50D757
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB540

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

Preview Lab → · Contrast checker → · Palette generator →

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