#AFB440#AFB440

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

Color values

HEX#AFB440
RGBrgb(175, 180, 64)
HSLhsl(63, 48%, 48%)
HSVhsv(63, 64%, 71%)
CMYKcmyk(2.8%, 0%, 64.4%, 29.4%)
CIE-LABlab(70.96, -16.69, 56.38)
CIE-LCHlch(70.96, 58.80, 106.49°)
OKLaboklab(74.39% -0.0507 0.1277)
OKLCHoklch(74.39% 0.137 111.7)
XYZxyz(34.9269, 42.1275, 11.1410)
Luminance0.4213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB440 #4540B4
analogous
#B47F40 #AFB440 #75B440
triadic
#AFB440 #40AFB4 #B440AF
tetradic
#AFB440 #40B47F #4540B4 #B44075
square
#AFB440 #40B47F #4540B4 #B44075
split-complementary
#AFB440 #4075B4 #7F40B4
monochromatic
#575A20 #838730 #AFB440 #C5C968 #D6D995

Accessibility & contrast

On white

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

On black

9.43
#AFB440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB440
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB440#FFFFFF#000000##000000
##AFB4401.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb440;
/* rgb */ color: rgb(175, 180, 64);
/* oklch */ color: oklch(74.4% 0.137 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca7b',
    500: '#afb440',
    950: '#000000',
  },
}
SCSS
$custom: #afb440;
$custom-light: #caca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb440",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 64
  },
  "hsl": {
    "h": 62.586,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.74389,
    "c": 0.13737,
    "h": 111.7
  },
  "luminance": 0.42127
}

Semantic roles & 50–950 ramp

primary
#AFB440
secondary
#8D8BC5
accent
#51D756
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB440

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

Preview Lab → · Contrast checker → · Palette generator →

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