#AFBE3B#AFBE3B

#AFBE3B is a light, vivid yellow. Relative luminance 0.463; OKLCH L 76.6% C 0.152 H 115.7°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#AFBE3B
RGBrgb(175, 190, 59)
HSLhsl(67, 53%, 49%)
HSVhsv(67, 69%, 75%)
CMYKcmyk(7.9%, 0%, 68.9%, 25.5%)
CIE-LABlab(73.71, -21.99, 61.18)
CIE-LCHlch(73.71, 65.02, 109.77°)
OKLaboklab(76.58% -0.066 0.137)
OKLCHoklch(76.58% 0.152 115.7)
XYZxyz(36.8830, 46.2572, 11.1224)
Luminance0.4626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE3B #4A3BBE
analogous
#BE8C3B #AFBE3B #6EBE3B
triadic
#AFBE3B #3BAFBE #BE3BAF
tetradic
#AFBE3B #3BBE8C #4A3BBE #BE3B6E
square
#AFBE3B #3BBE8C #4A3BBE #BE3B6E
split-complementary
#AFBE3B #3B6EBE #8C3BBE
monochromatic
#59611E #848F2C #AFBE3B #C4D067 #D6DE95

Accessibility & contrast

On white

2.05
#AFBE3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#AFBE3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE3B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE3B#FFFFFF#000000##000000
##AFBE3B1.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB426
Deuteranopia (green-blind)
#CAB645
Tritanopia (blue-blind)
#BAB3A4
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe3b;
/* rgb */ color: rgb(175, 190, 59);
/* oklch */ color: oklch(76.6% 0.152 115.7);
Tailwind
colors: {
  custom: {
    50: '#cad179',
    500: '#afbe3b',
    950: '#000000',
  },
}
SCSS
$custom: #afbe3b;
$custom-light: #cad179;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe3b",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 59
  },
  "hsl": {
    "h": 66.87,
    "s": 52.61,
    "l": 48.824
  },
  "oklch": {
    "l": 0.76583,
    "c": 0.15207,
    "h": 115.7
  },
  "luminance": 0.46257
}

Semantic roles & 50–950 ramp

primary
#AFBE3B
secondary
#928BCA
accent
#4CDC5C
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBE3B

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

Preview Lab → · Contrast checker → · Palette generator →

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