#AFBA2B#AFBA2B

#AFBA2B is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.157 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#AFBA2B
RGBrgb(175, 186, 43)
HSLhsl(65, 62%, 45%)
HSVhsv(65, 77%, 73%)
CMYKcmyk(5.9%, 0%, 76.9%, 27.1%)
CIE-LABlab(72.50, -20.79, 65.54)
CIE-LCHlch(72.50, 68.76, 107.60°)
OKLaboklab(75.58% -0.0641 0.1434)
OKLCHoklch(75.58% 0.157 114.1)
XYZxyz(35.6752, 44.4069, 8.9771)
Luminance0.4441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA2B #362BBA
analogous
#BA7D2B #AFBA2B #68BA2B
triadic
#AFBA2B #2BAFBA #BA2BAF
tetradic
#AFBA2B #2BBA7D #362BBA #BA2B68
square
#AFBA2B #2BBA7D #362BBA #BA2B68
split-complementary
#AFBA2B #2B68BA #7D2BBA
monochromatic
#515714 #808820 #AFBA2B #CBD64C #DAE17E

Accessibility & contrast

On white

2.13
#AFBA2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#AFBA2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA2B
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA2B#FFFFFF#000000##000000
##AFBA2B1.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#C8B338
Tritanopia (blue-blind)
#BBAF9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba2b;
/* rgb */ color: rgb(175, 186, 43);
/* oklch */ color: oklch(75.6% 0.157 114.1);
Tailwind
colors: {
  custom: {
    50: '#cbce71',
    500: '#afba2b',
    950: '#000000',
  },
}
SCSS
$custom: #afba2b;
$custom-light: #cbce71;
$custom-dark: #000000;
JSON
{
  "hex": "#afba2b",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 43
  },
  "hsl": {
    "h": 64.615,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75581,
    "c": 0.15713,
    "h": 114.1
  },
  "luminance": 0.44406
}

Semantic roles & 50–950 ramp

primary
#AFBA2B
secondary
#7D77CA
accent
#42E64F
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBA2B

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

Preview Lab → · Contrast checker → · Palette generator →

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