#AFBA47#AFBA47

#AFBA47 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 75.8% C 0.139 H 114.4°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#AFBA47
RGBrgb(175, 186, 71)
HSLhsl(66, 45%, 50%)
HSVhsv(66, 62%, 73%)
CMYKcmyk(5.9%, 0%, 61.8%, 27.1%)
CIE-LABlab(72.69, -19.25, 55.27)
CIE-LCHlch(72.69, 58.52, 109.20°)
OKLaboklab(75.79% -0.0572 0.1263)
OKLCHoklch(75.79% 0.139 114.4)
XYZxyz(36.3763, 44.6873, 12.6693)
Luminance0.4469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA47 #5247BA
analogous
#BA8B47 #AFBA47 #75BA47
triadic
#AFBA47 #47AFBA #BA47AF
tetradic
#AFBA47 #47BA8B #5247BA #BA4775
square
#AFBA47 #47BA8B #5247BA #BA4775
split-complementary
#AFBA47 #4775BA #8B47BA
monochromatic
#5C6225 #868E35 #AFBA47 #C2CB74 #D6DBA0

Accessibility & contrast

On white

2.11
#AFBA47 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.94
#AFBA47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA47
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA47#FFFFFF#000000##000000
##AFBA471.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B139
Deuteranopia (green-blind)
#C6B34E
Tritanopia (blue-blind)
#BAB0A2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba47;
/* rgb */ color: rgb(175, 186, 71);
/* oklch */ color: oklch(75.8% 0.139 114.4);
Tailwind
colors: {
  custom: {
    50: '#c9ce7f',
    500: '#afba47',
    950: '#000000',
  },
}
SCSS
$custom: #afba47;
$custom-light: #c9ce7f;
$custom-dark: #000000;
JSON
{
  "hex": "#afba47",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 71
  },
  "hsl": {
    "h": 65.739,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.75789,
    "c": 0.13864,
    "h": 114.4
  },
  "luminance": 0.44687
}

Semantic roles & 50–950 ramp

primary
#AFBA47
secondary
#9A95C8
accent
#53D55F
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA47

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

Preview Lab → · Contrast checker → · Palette generator →

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