#AFB146#AFB146

#AFB146 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.129 H 110.2°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#AFB146
RGBrgb(175, 177, 70)
HSLhsl(61, 43%, 48%)
HSVhsv(61, 60%, 69%)
CMYKcmyk(1.1%, 0%, 60.5%, 30.6%)
CIE-LABlab(70.18, -14.76, 52.99)
CIE-LCHlch(70.18, 55.00, 105.56°)
OKLaboklab(73.78% -0.0446 0.1213)
OKLCHoklch(73.78% 0.129 110.2)
XYZxyz(34.5078, 41.0013, 11.8894)
Luminance0.4100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB146 #4846B1
analogous
#B17D46 #AFB146 #79B146
triadic
#AFB146 #46AFB1 #B146AF
tetradic
#AFB146 #46B17D #4846B1 #B14679
square
#AFB146 #46B17D #4846B1 #B14679
split-complementary
#AFB146 #4679B1 #7D46B1
monochromatic
#585923 #848535 #AFB146 #C4C66E #D6D79A

Accessibility & contrast

On white

2.28
#AFB146 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#AFB146 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB146
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB146#FFFFFF#000000##000000
##AFB1461.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA3A
Deuteranopia (green-blind)
#BFAD4C
Tritanopia (blue-blind)
#BAA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb146;
/* rgb */ color: rgb(175, 177, 70);
/* oklch */ color: oklch(73.8% 0.129 110.2);
Tailwind
colors: {
  custom: {
    50: '#c9c87e',
    500: '#afb146',
    950: '#000000',
  },
}
SCSS
$custom: #afb146;
$custom-light: #c9c87e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb146",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 70
  },
  "hsl": {
    "h": 61.121,
    "s": 43.32,
    "l": 48.431
  },
  "oklch": {
    "l": 0.73781,
    "c": 0.12929,
    "h": 110.2
  },
  "luminance": 0.41
}

Semantic roles & 50–950 ramp

primary
#AFB146
secondary
#908FC3
accent
#55D357
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB146

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

Preview Lab → · Contrast checker → · Palette generator →

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