#AFBC2E#AFBC2E

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

Color values

HEX#AFBC2E
RGBrgb(175, 188, 46)
HSLhsl(65, 61%, 46%)
HSVhsv(65, 76%, 74%)
CMYKcmyk(6.9%, 0%, 75.5%, 26.3%)
CIE-LABlab(73.07, -21.66, 65.12)
CIE-LCHlch(73.07, 68.63, 108.39°)
OKLaboklab(76.05% -0.0663 0.1431)
OKLCHoklch(76.05% 0.158 114.9)
XYZxyz(36.1566, 45.2783, 9.4191)
Luminance0.4528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC2E #3B2EBC
analogous
#BC822E #AFBC2E #68BC2E
triadic
#AFBC2E #2EAFBC #BC2EAF
tetradic
#AFBC2E #2EBC82 #3B2EBC #BC2E68
square
#AFBC2E #2EBC82 #3B2EBC #BC2E68
split-complementary
#AFBC2E #2E68BC #822EBC
monochromatic
#535A16 #818B22 #AFBC2E #C9D552 #D8E184

Accessibility & contrast

On white

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

On black

10.06
#AFBC2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC2E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC2E#FFFFFF#000000##000000
##AFBC2E1.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afbc2e;
/* rgb */ color: rgb(175, 188, 46);
/* oklch */ color: oklch(76.0% 0.158 114.9);
Tailwind
colors: {
  custom: {
    50: '#cbd072',
    500: '#afbc2e',
    950: '#000000',
  },
}
SCSS
$custom: #afbc2e;
$custom-light: #cbd072;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc2e",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 46
  },
  "hsl": {
    "h": 65.493,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.76047,
    "c": 0.1577,
    "h": 114.9
  },
  "luminance": 0.45278
}

Semantic roles & 50–950 ramp

primary
#AFBC2E
secondary
#837CCA
accent
#44E453
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBC2E

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

Preview Lab → · Contrast checker → · Palette generator →

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