#AFBA3B#AFBA3B

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

Color values

HEX#AFBA3B
RGBrgb(175, 186, 59)
HSLhsl(65, 52%, 48%)
HSVhsv(65, 68%, 73%)
CMYKcmyk(5.9%, 0%, 68.3%, 27.1%)
CIE-LABlab(72.59, -20.01, 60.06)
CIE-LCHlch(72.59, 63.31, 108.43°)
OKLaboklab(75.69% -0.0605 0.1346)
OKLCHoklch(75.69% 0.148 114.2)
XYZxyz(36.0285, 44.5482, 10.8376)
Luminance0.4455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA3B #463BBA
analogous
#BA853B #AFBA3B #6FBA3B
triadic
#AFBA3B #3BAFBA #BA3BAF
tetradic
#AFBA3B #3BBA85 #463BBA #BA3B6F
square
#AFBA3B #3BBA85 #463BBA #BA3B6F
split-complementary
#AFBA3B #3B6FBA #853BBA
monochromatic
#585D1E #838C2C #AFBA3B #C5CE64 #D6DD93

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA3B#FFFFFF#000000##000000
##AFBA3B1.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)
#C7B127
Deuteranopia (green-blind)
#C7B344
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba3b;
/* rgb */ color: rgb(175, 186, 59);
/* oklch */ color: oklch(75.7% 0.148 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace78',
    500: '#afba3b',
    950: '#000000',
  },
}
SCSS
$custom: #afba3b;
$custom-light: #cace78;
$custom-dark: #000000;
JSON
{
  "hex": "#afba3b",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 59
  },
  "hsl": {
    "h": 65.197,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.75686,
    "c": 0.14759,
    "h": 114.2
  },
  "luminance": 0.44548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFBA3B

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

Preview Lab → · Contrast checker → · Palette generator →

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