#AFB145#AFB145

#AFB145 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.130 H 110.2°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#AFB145
RGBrgb(175, 177, 69)
HSLhsl(61, 44%, 48%)
HSVhsv(61, 61%, 69%)
CMYKcmyk(1.1%, 0%, 61%, 30.6%)
CIE-LABlab(70.17, -14.83, 53.42)
CIE-LCHlch(70.17, 55.44, 105.51°)
OKLaboklab(73.77% -0.0449 0.1221)
OKLCHoklch(73.77% 0.13 110.2)
XYZxyz(34.4765, 40.9888, 11.7246)
Luminance0.4099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB145 #4745B1
analogous
#B17D45 #AFB145 #79B145
triadic
#AFB145 #45AFB1 #B145AF
tetradic
#AFB145 #45B17D #4745B1 #B14579
square
#AFB145 #45B17D #4745B1 #B14579
split-complementary
#AFB145 #4579B1 #7D45B1
monochromatic
#585923 #838534 #AFB145 #C4C66D #D6D799

Accessibility & contrast

On white

2.28
#AFB145 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#AFB145 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB145
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB145#FFFFFF#000000##000000
##AFB1451.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA38
Deuteranopia (green-blind)
#BFAD4C
Tritanopia (blue-blind)
#BAA79A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb145;
/* rgb */ color: rgb(175, 177, 69);
/* oklch */ color: oklch(73.8% 0.130 110.2);
Tailwind
colors: {
  custom: {
    50: '#c9c87d',
    500: '#afb145',
    950: '#000000',
  },
}
SCSS
$custom: #afb145;
$custom-light: #c9c87d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb145",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 69
  },
  "hsl": {
    "h": 61.111,
    "s": 43.902,
    "l": 48.235
  },
  "oklch": {
    "l": 0.73771,
    "c": 0.13012,
    "h": 110.2
  },
  "luminance": 0.40988
}

Semantic roles & 50–950 ramp

primary
#AFB145
secondary
#8F8EC3
accent
#54D457
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB145

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

Preview Lab → · Contrast checker → · Palette generator →

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