#AFBF45#AFBF45

#AFBF45 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 76.9% C 0.146 H 116.3°. Best body text is #000000 at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#AFBF45
RGBrgb(175, 191, 69)
HSLhsl(68, 49%, 51%)
HSVhsv(68, 64%, 75%)
CMYKcmyk(8.4%, 0%, 63.9%, 25.1%)
CIE-LABlab(74.07, -21.87, 57.58)
CIE-LCHlch(74.07, 61.59, 110.80°)
OKLaboklab(76.89% -0.0647 0.1309)
OKLCHoklch(76.89% 0.146 116.3)
XYZxyz(37.3850, 46.8057, 12.6941)
Luminance0.4681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF45 #5545BF
analogous
#BF9245 #AFBF45 #72BF45
triadic
#AFBF45 #45AFBF #BF45AF
tetradic
#AFBF45 #45BF92 #5545BF #BF4572
square
#AFBF45 #45BF92 #5545BF #BF4572
split-complementary
#AFBF45 #4572BF #9245BF
monochromatic
#5E6623 #879433 #AFBF45 #C3CF73 #D6DEA0

Accessibility & contrast

On white

2.03
#AFBF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.36
#AFBF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF45
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF45#FFFFFF#000000##000000
##AFBF451.002.0310.3610.36
#FFFFFF2.031.0021.0021.00
#00000010.3621.001.001.00
##00000010.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB535
Deuteranopia (green-blind)
#CAB74D
Tritanopia (blue-blind)
#B9B5A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf45;
/* rgb */ color: rgb(175, 191, 69);
/* oklch */ color: oklch(76.9% 0.146 116.3);
Tailwind
colors: {
  custom: {
    50: '#cad27f',
    500: '#afbf45',
    950: '#000000',
  },
}
SCSS
$custom: #afbf45;
$custom-light: #cad27f;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf45",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 69
  },
  "hsl": {
    "h": 67.869,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.7689,
    "c": 0.14604,
    "h": 116.3
  },
  "luminance": 0.46805
}

Semantic roles & 50–950 ramp

primary
#AFBF45
secondary
#9C95CB
accent
#4FD861
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBF45

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

Preview Lab → · Contrast checker → · Palette generator →

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