#AFBA3E#AFBA3E

#AFBA3E is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.7% C 0.145 H 114.2°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#AFBA3E
RGBrgb(175, 186, 62)
HSLhsl(65, 50%, 49%)
HSVhsv(65, 67%, 73%)
CMYKcmyk(5.9%, 0%, 66.7%, 27.1%)
CIE-LABlab(72.61, -19.83, 58.91)
CIE-LCHlch(72.61, 62.16, 108.61°)
OKLaboklab(75.71% -0.0597 0.1327)
OKLCHoklch(75.71% 0.146 114.2)
XYZxyz(36.1085, 44.5802, 11.2592)
Luminance0.4458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA3E #493EBA
analogous
#BA873E #AFBA3E #71BA3E
triadic
#AFBA3E #3EAFBA #BA3EAF
tetradic
#AFBA3E #3EBA87 #493EBA #BA3E71
square
#AFBA3E #3EBA87 #493EBA #BA3E71
split-complementary
#AFBA3E #3E71BA #873EBA
monochromatic
#595E1F #848C2F #AFBA3E #C4CD68 #D6DC96

Accessibility & contrast

On white

2.12
#AFBA3E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#AFBA3E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA3E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA3E#FFFFFF#000000##000000
##AFBA3E1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B12C
Deuteranopia (green-blind)
#C7B347
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba3e;
/* rgb */ color: rgb(175, 186, 62);
/* oklch */ color: oklch(75.7% 0.145 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace7a',
    500: '#afba3e',
    950: '#000000',
  },
}
SCSS
$custom: #afba3e;
$custom-light: #cace7a;
$custom-dark: #000000;
JSON
{
  "hex": "#afba3e",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 62
  },
  "hsl": {
    "h": 65.323,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.7571,
    "c": 0.1455,
    "h": 114.2
  },
  "luminance": 0.4458
}

Semantic roles & 50–950 ramp

primary
#AFBA3E
secondary
#918CC8
accent
#4EDA5B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA3E

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

Preview Lab → · Contrast checker → · Palette generator →

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