#AFBA2A#AFBA2A

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

Color values

HEX#AFBA2A
RGBrgb(175, 186, 42)
HSLhsl(65, 63%, 45%)
HSVhsv(65, 77%, 73%)
CMYKcmyk(5.9%, 0%, 77.4%, 27.1%)
CIE-LABlab(72.49, -20.83, 65.84)
CIE-LCHlch(72.49, 69.06, 107.56°)
OKLaboklab(75.58% -0.0643 0.1439)
OKLCHoklch(75.58% 0.158 114.1)
XYZxyz(35.6571, 44.3997, 8.8817)
Luminance0.4440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA2A #352ABA
analogous
#BA7D2A #AFBA2A #67BA2A
triadic
#AFBA2A #2AAFBA #BA2AAF
tetradic
#AFBA2A #2ABA7D #352ABA #BA2A67
square
#AFBA2A #2ABA7D #352ABA #BA2A67
split-complementary
#AFBA2A #2A67BA #7D2ABA
monochromatic
#515613 #80881F #AFBA2A #CCD64B #DAE27D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA2A#FFFFFF#000000##000000
##AFBA2A1.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)
#C8B337
Tritanopia (blue-blind)
#BBAF9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba2a;
/* rgb */ color: rgb(175, 186, 42);
/* oklch */ color: oklch(75.6% 0.158 114.1);
Tailwind
colors: {
  custom: {
    50: '#cbce70',
    500: '#afba2a',
    950: '#000000',
  },
}
SCSS
$custom: #afba2a;
$custom-light: #cbce70;
$custom-dark: #000000;
JSON
{
  "hex": "#afba2a",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 64.583,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75576,
    "c": 0.15762,
    "h": 114.1
  },
  "luminance": 0.44399
}

Semantic roles & 50–950 ramp

primary
#AFBA2A
secondary
#7C76CA
accent
#42E64E
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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