#AFBC2B#AFBC2B

#AFBC2B is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.0% C 0.159 H 114.8°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#AFBC2B
RGBrgb(175, 188, 43)
HSLhsl(65, 63%, 45%)
HSVhsv(65, 77%, 74%)
CMYKcmyk(6.9%, 0%, 77.1%, 26.3%)
CIE-LABlab(73.06, -21.78, 66.05)
CIE-LCHlch(73.06, 69.55, 108.25°)
OKLaboklab(76.03% -0.0669 0.1445)
OKLCHoklch(76.03% 0.159 114.8)
XYZxyz(36.0995, 45.2555, 9.1185)
Luminance0.4526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC2B #382BBC
analogous
#BC802B #AFBC2B #67BC2B
triadic
#AFBC2B #2BAFBC #BC2BAF
tetradic
#AFBC2B #2BBC80 #382BBC #BC2B67
square
#AFBC2B #2BBC80 #382BBC #BC2B67
split-complementary
#AFBC2B #2B67BC #802BBC
monochromatic
#525814 #818A20 #AFBC2B #CAD64E #D9E280

Accessibility & contrast

On white

2.09
#AFBC2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#AFBC2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC2B
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC2B#FFFFFF#000000##000000
##AFBC2B1.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB200
Deuteranopia (green-blind)
#C9B538
Tritanopia (blue-blind)
#BBB1A1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbc2b;
/* rgb */ color: rgb(175, 188, 43);
/* oklch */ color: oklch(76.0% 0.159 114.8);
Tailwind
colors: {
  custom: {
    50: '#cbd071',
    500: '#afbc2b',
    950: '#000000',
  },
}
SCSS
$custom: #afbc2b;
$custom-light: #cbd071;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc2b",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 43
  },
  "hsl": {
    "h": 65.379,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.7603,
    "c": 0.15924,
    "h": 114.8
  },
  "luminance": 0.45255
}

Semantic roles & 50–950 ramp

primary
#AFBC2B
secondary
#8078CB
accent
#42E651
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBC2B

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

Preview Lab → · Contrast checker → · Palette generator →

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