#AFBB45#AFBB45

#AFBB45 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.0% C 0.141 H 114.7°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#AFBB45
RGBrgb(175, 187, 69)
HSLhsl(66, 46%, 50%)
HSVhsv(66, 63%, 73%)
CMYKcmyk(6.4%, 0%, 63.1%, 26.7%)
CIE-LABlab(72.95, -19.88, 56.40)
CIE-LCHlch(72.95, 59.80, 109.42°)
OKLaboklab(75.99% -0.0592 0.1284)
OKLCHoklch(75.99% 0.141 114.7)
XYZxyz(36.5246, 45.0849, 12.4072)
Luminance0.4508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB45 #5145BB
analogous
#BB8C45 #AFBB45 #74BB45
triadic
#AFBB45 #45AFBB #BB45AF
tetradic
#AFBB45 #45BB8C #5145BB #BB4574
square
#AFBB45 #45BB8C #5145BB #BB4574
split-complementary
#AFBB45 #4574BB #8C45BB
monochromatic
#5C6224 #858F34 #AFBB45 #C2CB72 #D6DC9F

Accessibility & contrast

On white

2.10
#AFBB45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#AFBB45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB45
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB45#FFFFFF#000000##000000
##AFBB451.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B236
Deuteranopia (green-blind)
#C7B44D
Tritanopia (blue-blind)
#BAB1A2
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb45;
/* rgb */ color: rgb(175, 187, 69);
/* oklch */ color: oklch(76.0% 0.141 114.7);
Tailwind
colors: {
  custom: {
    50: '#cacf7e',
    500: '#afbb45',
    950: '#000000',
  },
}
SCSS
$custom: #afbb45;
$custom-light: #cacf7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb45",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 69
  },
  "hsl": {
    "h": 66.102,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.75994,
    "c": 0.14139,
    "h": 114.7
  },
  "luminance": 0.45084
}

Semantic roles & 50–950 ramp

primary
#AFBB45
secondary
#9994C8
accent
#52D65F
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBB45

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

Preview Lab → · Contrast checker → · Palette generator →

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