#AFBA3C#AFBA3C

#AFBA3C is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.7% C 0.147 H 114.2°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#AFBA3C
RGBrgb(175, 186, 60)
HSLhsl(65, 51%, 48%)
HSVhsv(65, 68%, 73%)
CMYKcmyk(5.9%, 0%, 67.7%, 27.1%)
CIE-LABlab(72.60, -19.95, 59.68)
CIE-LCHlch(72.60, 62.93, 108.49°)
OKLaboklab(75.69% -0.0603 0.134)
OKLCHoklch(75.69% 0.147 114.2)
XYZxyz(36.0547, 44.5587, 10.9755)
Luminance0.4456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA3C #473CBA
analogous
#BA863C #AFBA3C #70BA3C
triadic
#AFBA3C #3CAFBA #BA3CAF
tetradic
#AFBA3C #3CBA86 #473CBA #BA3C70
square
#AFBA3C #3CBA86 #473CBA #BA3C70
split-complementary
#AFBA3C #3C70BA #863CBA
monochromatic
#585D1E #838C2D #AFBA3C #C4CE66 #D6DC94

Accessibility & contrast

On white

2.12
#AFBA3C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#AFBA3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA3C
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA3C#FFFFFF#000000##000000
##AFBA3C1.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B129
Deuteranopia (green-blind)
#C7B345
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba3c;
/* rgb */ color: rgb(175, 186, 60);
/* oklch */ color: oklch(75.7% 0.147 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace79',
    500: '#afba3c',
    950: '#000000',
  },
}
SCSS
$custom: #afba3c;
$custom-light: #cace79;
$custom-dark: #000000;
JSON
{
  "hex": "#afba3c",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 60
  },
  "hsl": {
    "h": 65.238,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.75694,
    "c": 0.14691,
    "h": 114.2
  },
  "luminance": 0.44558
}

Semantic roles & 50–950 ramp

primary
#AFBA3C
secondary
#8F8AC8
accent
#4DDB59
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA3C

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

Preview Lab → · Contrast checker → · Palette generator →

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